BigW Consortium Gitlab

_delete_label_modal.html.haml 721 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
.modal{ id: "modal-delete-label-#{label.id}", tabindex: -1 }
  .modal-dialog
    .modal-content
      .modal-header
        %button.close{ data: {dismiss: 'modal' } } ×
        %h3.page-title Delete #{render_colored_label(label, tooltip: false)} ?

      .modal-body
        %p
10 11
          %strong= label.name
          %span will be permanently deleted from #{label.is_a?(ProjectLabel)? label.project.name : label.group.name}. This cannot be undone.
12 13 14 15 16 17 18 19 20

      .modal-footer
        %a{ href: '#', data: { dismiss: 'modal' }, class: 'btn btn-default' } Cancel

        = link_to 'Delete label',
          destroy_label_path(label),
          title: 'Delete',
          method: :delete,
          class: 'btn btn-remove'