summaryrefslogtreecommitdiff
path: root/app/views/projects/blob/_upload.html.haml
blob: 60a49441ce8622fcce15c77756fa1bdbf645d4dd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#modal-upload-blob.modal
  .modal-dialog.modal-lg
    .modal-content
      .modal-header
        %a.close{ href: "#", "data-dismiss" => "modal" } ×
        %h3.page-title= title
      .modal-body
        = form_tag form_path, method: method, class: 'js-quick-submit js-upload-blob-form', data: { method: method } do
          .dropzone
            .dropzone-previews.blob-upload-dropzone-previews
              %p.dz-message.light
                - 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 }

          %br
          .dropzone-alerts.alert.alert-danger.data{ style: "display:none" }

          = render 'shared/new_commit_form', placeholder: placeholder

          .form-actions
            = button_tag class: 'btn btn-create btn-upload-file', id: 'submit-all', type: 'button' do
              = icon('spin spinner', class: 'js-loading-icon hidden' )
              = button_title
            = link_to _("Cancel"), '#', class: "btn btn-cancel", "data-dismiss" => "modal"

            = render 'shared/projects/edit_information'