debian-mirror-gitlab/app/views/projects/blob/_upload.html.haml

29 lines
1.4 KiB
Text
Raw Normal View History

2015-09-25 12:07:36 +05:30
#modal-upload-blob.modal
2018-03-17 18:26:18 +05:30
.modal-dialog.modal-lg
2015-09-25 12:07:36 +05:30
.modal-content
.modal-header
2017-08-17 22:00:37 +05:30
%h3.page-title= title
2018-11-08 19:23:39 +05:30
%button.close{ type: "button", "data-dismiss": "modal", "aria-label" => _('Close') }
%span{ "aria-hidden": true } ×
2015-09-25 12:07:36 +05:30
.modal-body
2018-11-08 19:23:39 +05:30
= form_tag form_path, method: method, class: 'js-quick-submit js-upload-blob-form', data: { method: method } do
2015-09-25 12:07:36 +05:30
.dropzone
.dropzone-previews.blob-upload-dropzone-previews
%p.dz-message.light
2017-09-10 17:25:29 +05:30
- upload_link = link_to s_('UploadLink|click to upload'), '#', class: "markdown-selector"
- dropzone_text = _('Attach a file by drag & drop or %{upload_link}') % { upload_link: upload_link }
#{ dropzone_text.html_safe }
2015-09-25 12:07:36 +05:30
%br
2021-01-03 14:25:43 +05:30
.dropzone-alerts.gl-alert.gl-alert-danger.gl-mb-5.data{ style: "display:none" }
2015-11-26 14:37:03 +05:30
2021-04-17 20:07:23 +05:30
= render 'shared/new_commit_form', placeholder: placeholder, ref: local_assigns[:ref]
2015-11-26 14:37:03 +05:30
2015-12-23 02:04:40 +05:30
.form-actions
2021-04-29 21:17:54 +05:30
= button_tag class: 'btn gl-button btn-confirm btn-upload-file', id: 'submit-all', type: 'button' do
2021-01-29 00:20:46 +05:30
.spinner.spinner-sm.gl-mr-2.js-loading-icon.hidden
2017-09-10 17:25:29 +05:30
= button_title
2021-04-29 21:17:54 +05:30
= link_to _("Cancel"), '#', class: "btn gl-button btn-default btn-cancel", "data-dismiss" => "modal"
2015-09-25 12:07:36 +05:30
2018-03-27 19:54:05 +05:30
= render 'shared/projects/edit_information'