29 lines
1.3 KiB
Text
29 lines
1.3 KiB
Text
|
#modal-upload-blob.modal
|
|||
|
.modal-dialog
|
|||
|
.modal-content
|
|||
|
.modal-header
|
|||
|
%a.close{href: "#", "data-dismiss" => "modal"} ×
|
|||
|
%h3.page-title Upload
|
|||
|
%p.light
|
|||
|
From branch
|
|||
|
%strong= @ref
|
|||
|
.modal-body
|
|||
|
= form_tag namespace_project_create_blob_path(@project.namespace, @project, @id), method: :post, class: 'blob-file-upload-form-js form-horizontal' do
|
|||
|
.dropzone
|
|||
|
.dropzone-previews{class: "blob-upload-dropzone-previews"}
|
|||
|
%p.dz-message{class: "hint"}<
|
|||
|
Attach files by dragging & dropping or
|
|||
|
%a{href: '#', class: "markdown-selector"}>click to upload
|
|||
|
%br
|
|||
|
.dropzone-alerts{class: "alert alert-danger data", "data-dismiss" => "alert", style: "display:none"}
|
|||
|
= render 'shared/commit_message_container', params: params,
|
|||
|
placeholder: 'Upload this file because...'
|
|||
|
.form-group
|
|||
|
.col-sm-offset-2.col-sm-10
|
|||
|
= button_tag 'Upload file', class: 'btn btn-small btn-primary btn-upload-file', id: 'submit-all'
|
|||
|
= link_to "Cancel", '#', class: "btn btn-cancel", "data-dismiss" => "modal"
|
|||
|
|
|||
|
:coffeescript
|
|||
|
disableButtonIfEmptyField $('.blob-file-upload-form-js').find('#commit_message'), '.btn-upload-file'
|
|||
|
new BlobFileDropzone($('.blob-file-upload-form-js'), 'post')
|