2015-09-10 10:18:40 -04:00
|
|
|
|
#modal-upload-blob.modal
|
|
|
|
|
.modal-dialog
|
|
|
|
|
.modal-content
|
|
|
|
|
.modal-header
|
|
|
|
|
%a.close{href: "#", "data-dismiss" => "modal"} ×
|
2015-09-17 02:34:30 -04:00
|
|
|
|
%h3.page-title #{title}
|
2015-09-10 10:18:40 -04:00
|
|
|
|
.modal-body
|
2016-02-12 16:28:53 -05:00
|
|
|
|
= form_tag form_path, method: method, class: 'js-quick-submit js-upload-blob-form form-horizontal' do
|
2015-09-10 10:18:40 -04:00
|
|
|
|
.dropzone
|
2015-09-15 08:56:42 -04:00
|
|
|
|
.dropzone-previews.blob-upload-dropzone-previews
|
|
|
|
|
%p.dz-message.light
|
2015-09-15 09:31:33 -04:00
|
|
|
|
Attach a file by drag & drop or
|
2015-09-15 08:56:42 -04:00
|
|
|
|
= link_to 'click to upload', '#', class: "markdown-selector"
|
2015-09-10 10:18:40 -04:00
|
|
|
|
%br
|
2015-09-15 09:58:49 -04:00
|
|
|
|
.dropzone-alerts{class: "alert alert-danger data", style: "display:none"}
|
2015-11-17 12:53:56 -05:00
|
|
|
|
|
|
|
|
|
= render 'shared/new_commit_form', placeholder: placeholder
|
|
|
|
|
|
2015-12-02 08:34:20 -05:00
|
|
|
|
.form-actions
|
|
|
|
|
= button_tag button_title, class: 'btn btn-small btn-create btn-upload-file', id: 'submit-all'
|
|
|
|
|
= link_to "Cancel", '#', class: "btn btn-cancel", "data-dismiss" => "modal"
|
2015-09-10 10:18:40 -04:00
|
|
|
|
|
2015-12-18 04:03:34 -05:00
|
|
|
|
- unless can?(current_user, :push_code, @project)
|
|
|
|
|
.inline.prepend-left-10
|
|
|
|
|
= commit_in_fork_help
|
|
|
|
|
|
|
|
|
|
|
2015-11-10 06:17:37 -05:00
|
|
|
|
:javascript
|
2015-11-17 12:53:56 -05:00
|
|
|
|
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'))
|