summaryrefslogtreecommitdiff
path: root/app/views/groups/settings/_remove_button.html.haml
blob: 1d5b7160049d094cc3f0545685ba3215c2f1eccb (plain)
1
2
3
4
5
6
7
8
9
- remove_form_id = local_assigns.fetch(:remove_form_id, nil)

- if group.paid?
  .gl-alert.gl-alert-info.gl-mb-5{ data: { testid: 'group-has-linked-subscription-alert' } }
    = sprite_icon('information-o', size: 16, css_class: 'gl-icon gl-alert-icon gl-alert-icon-no-title')
    .gl-alert-body
      = html_escape(_("This group can't be removed because it is linked to a subscription. To remove this group, %{linkStart}link the subscription%{linkEnd} with a different group.")) % { linkStart: "<a href=\"#{help_page_path('subscriptions/index', anchor: 'change-the-linked-namespace')}\">".html_safe, linkEnd: '</a>'.html_safe }

.js-confirm-danger{ data: group_settings_confirm_modal_data(group, remove_form_id) }