2018-03-17 18:26:18 +05:30
|
|
|
.modal{ id: "modal-delete-label-#{label.id}", tabindex: -1 }
|
|
|
|
.modal-dialog
|
|
|
|
.modal-content
|
|
|
|
.modal-header
|
2020-05-24 23:13:21 +05:30
|
|
|
%h3.page-title= _('Delete label: %{label_name} ?') % { label_name: label.name }
|
2018-11-08 19:23:39 +05:30
|
|
|
%button.close{ type: "button", "data-dismiss": "modal", "aria-label" => _('Close') }
|
|
|
|
%span{ "aria-hidden": true } ×
|
2018-03-17 18:26:18 +05:30
|
|
|
|
|
|
|
.modal-body
|
|
|
|
%p
|
2020-10-24 23:57:45 +05:30
|
|
|
= html_escape(_('%{label_name} %{span_open}will be permanently deleted from %{subject_name}. This cannot be undone.%{span_close}')) % { label_name: tag.strong(label.name), subject_name: label.subject_name, span_open: '<span>'.html_safe, span_close: '</span>'.html_safe }
|
2018-03-17 18:26:18 +05:30
|
|
|
|
|
|
|
.modal-footer
|
2020-05-24 23:13:21 +05:30
|
|
|
%a{ href: '#', data: { dismiss: 'modal' }, class: 'btn btn-default' }= _('Cancel')
|
2018-03-17 18:26:18 +05:30
|
|
|
|
2020-05-24 23:13:21 +05:30
|
|
|
= link_to _('Delete label'),
|
2019-07-31 22:56:46 +05:30
|
|
|
label.destroy_path,
|
2020-05-24 23:13:21 +05:30
|
|
|
title: _('Delete'),
|
2018-03-17 18:26:18 +05:30
|
|
|
method: :delete,
|
|
|
|
class: 'btn btn-remove'
|