2015-09-25 12:07:36 +05:30
|
|
|
|
#modal-upload-blob.modal
|
|
|
|
|
.modal-dialog
|
|
|
|
|
.modal-content
|
|
|
|
|
.modal-header
|
|
|
|
|
%a.close{href: "#", "data-dismiss" => "modal"} ×
|
|
|
|
|
%h3.page-title #{title}
|
|
|
|
|
.modal-body
|
2015-11-26 14:37:03 +05:30
|
|
|
|
= form_tag form_path, method: method, class: 'js-upload-blob-form form-horizontal' do
|
2015-09-25 12:07:36 +05:30
|
|
|
|
.dropzone
|
|
|
|
|
.dropzone-previews.blob-upload-dropzone-previews
|
|
|
|
|
%p.dz-message.light
|
|
|
|
|
Attach a file by drag & drop or
|
|
|
|
|
= link_to 'click to upload', '#', class: "markdown-selector"
|
|
|
|
|
%br
|
|
|
|
|
.dropzone-alerts{class: "alert alert-danger data", style: "display:none"}
|
2015-11-26 14:37:03 +05:30
|
|
|
|
|
|
|
|
|
= render 'shared/new_commit_form', placeholder: placeholder
|
|
|
|
|
|
2015-09-25 12:07:36 +05:30
|
|
|
|
.form-group
|
|
|
|
|
.col-sm-offset-2.col-sm-10
|
|
|
|
|
= button_tag button_title, class: 'btn btn-small btn-primary btn-upload-file', id: 'submit-all'
|
|
|
|
|
= link_to "Cancel", '#', class: "btn btn-cancel", "data-dismiss" => "modal"
|
|
|
|
|
|
2015-11-26 14:37:03 +05:30
|
|
|
|
:javascript
|
|
|
|
|
disableButtonIfEmptyField($('.js-upload-blob-form').find('.js-commit-message'), '.btn-upload-file');
|
|
|
|
|
new BlobFileDropzone($('.js-upload-blob-form'), '#{method}');
|
|
|
|
|
new NewCommitForm($('.js-upload-blob-form'))
|