_confirm_modal.html.haml 865 字节
Newer Older
1
#modal-confirm-danger.modal{ tabindex: -1 }
2 3 4
  .modal-dialog
    .modal-content
      .modal-header
L
Luke Bennett 已提交
5
        %h3.page-title= _('Confirmation required')
6 7
        %button.close{ type: "button", "data-dismiss": "modal", "aria-label" => _('Close') }
          %span{ "aria-hidden": true } ×
8 9

      .modal-body
10
        %p.text-danger.js-confirm-text
11 12

        %p
L
Luke Bennett 已提交
13
          %span.js-warning-text= _('This action can lead to data loss. To prevent accidental actions we ask you to confirm your intention.')
14 15
          %br
          Please type
16
          %code.js-confirm-danger-match= phrase
17
          to proceed or close this modal to cancel.
18 19 20

        .form-group
          = text_field_tag 'confirm_name_input', '', class: 'form-control js-confirm-danger-input'
D
Douwe Maan 已提交
21
        .form-actions
L
Luke Bennett 已提交
22
          = submit_tag _('Confirm'), class: "btn btn-danger js-confirm-danger-submit"