20 lines
936 B
Text
20 lines
936 B
Text
.modal{ id: "modal-delete-label-#{label.id}", tabindex: -1 }
|
|
.modal-dialog
|
|
.modal-content
|
|
.modal-header
|
|
%h3.page-title= _('Delete label: %{label_name} ?') % { label_name: label.name }
|
|
%button.close{ type: "button", "data-dismiss": "modal", "aria-label" => _('Close') }
|
|
%span{ "aria-hidden": true } ×
|
|
|
|
.modal-body
|
|
%p
|
|
= 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 }
|
|
|
|
.modal-footer
|
|
%a{ href: '#', data: { dismiss: 'modal' }, class: 'btn btn-default' }= _('Cancel')
|
|
|
|
= link_to _('Delete label'),
|
|
label.destroy_path,
|
|
title: _('Delete'),
|
|
method: :delete,
|
|
class: 'gl-button btn btn-danger'
|