debian-mirror-gitlab/app/views/shared/_confirm_modal.html.haml

22 lines
1 KiB
Text
Raw Normal View History

2019-09-30 21:07:59 +05:30
#modal-confirm-danger.modal.qa-confirm-modal{ tabindex: -1 }
2015-04-26 12:48:37 +05:30
.modal-dialog
.modal-content
.modal-header
2019-07-31 22:56:46 +05:30
%h3.page-title= _('Confirmation required')
2018-11-08 19:23:39 +05:30
%button.close{ type: "button", "data-dismiss": "modal", "aria-label" => _('Close') }
%span{ "aria-hidden": true } ×
2015-04-26 12:48:37 +05:30
.modal-body
2016-06-02 11:05:42 +05:30
%p.text-danger.js-confirm-text
2015-04-26 12:48:37 +05:30
%p
2019-07-31 22:56:46 +05:30
%span.js-warning-text= _('This action can lead to data loss. To prevent accidental actions we ask you to confirm your intention.')
2015-04-26 12:48:37 +05:30
%br
2019-12-21 20:55:43 +05:30
- phrase_code = '<code class="js-confirm-danger-match">%{phrase_name}</code>'.html_safe % { phrase_name: phrase }
= _('Please type %{phrase_code} to proceed or close this modal to cancel.').html_safe % { phrase_code: phrase_code }
2015-04-26 12:48:37 +05:30
.form-group
2019-09-30 21:07:59 +05:30
= text_field_tag 'confirm_name_input', '', class: 'form-control js-confirm-danger-input qa-confirm-input'
2021-01-03 14:25:43 +05:30
.form-actions
2021-04-29 21:17:54 +05:30
= submit_tag _('Confirm'), class: "gl-button btn btn-danger js-confirm-danger-submit qa-confirm-button"