summaryrefslogtreecommitdiff
path: root/app/views/projects/blob/_remove.html.haml
blob: 9082596da705a89a351653293b387af48225c86d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#modal-remove-blob.modal
  .modal-dialog
    .modal-content
      .modal-header
        %a.close{ href: "#", "data-dismiss" => "modal" } ×
        %h3.page-title Delete #{@blob.name}

      .modal-body
        = form_tag namespace_project_blob_path(*@project, @id), method: :delete, class: 'form-horizontal js-delete-blob-form js-quick-submit js-requires-input' do
          = render 'shared/new_commit_form', placeholder: "Delete #{@blob.name}"

          .form-group
            .col-sm-offset-2.col-sm-10
              = button_tag 'Delete file', class: 'btn btn-remove btn-remove-file'
              = link_to "Cancel", '#', class: "btn btn-cancel", "data-dismiss" => "modal"

:javascript
  new NewCommitForm($('.js-delete-blob-form'))