summaryrefslogtreecommitdiff
path: root/app/views/shared/_confirm_modal.html.haml
blob: 8e3b482e27d46cc243d8279e00ab31296771d8ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#modal-confirm-danger.modal.qa-confirm-modal{ tabindex: -1 }
  .modal-dialog
    .modal-content
      .modal-header
        %h3.page-title= _('Confirmation required')
        %button.close{ type: "button", "data-dismiss": "modal", "aria-label" => _('Close') }
          %span{ "aria-hidden": true } ×

      .modal-body
        %p.text-danger.js-confirm-text

        %p
          %span.js-warning-text= _('This action can lead to data loss. To prevent accidental actions we ask you to confirm your intention.')
          %br
          Please type
          %code.js-confirm-danger-match= phrase
          to proceed or close this modal to cancel.

        .form-group
          = text_field_tag 'confirm_name_input', '', class: 'form-control js-confirm-danger-input qa-confirm-input'
        .form-actions
          = submit_tag _('Confirm'), class: "btn btn-danger js-confirm-danger-submit qa-confirm-button"