Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_delete_form.html.haml « applications « doorkeeper « shared « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 512daf7b96b932f54be5ba0fed5be0d12346039d (plain)
1
2
3
4
5
6
7
8
9
10
- submit_btn_css ||= 'btn btn-danger btn-md gl-button btn-danger-secondary'
= form_tag path do
  %input{ :name => "_method", :type => "hidden", :value => "delete" }
  - if defined? small
    = render Pajamas::ButtonComponent.new(type: :submit, variant: :confirm, icon: 'remove', button_options: { class: submit_btn_css, data: { confirm: _("Are you sure?"), confirm_btn_variant: "danger" } }) do
      %span.sr-only
        = _('Destroy')
  - else
    = render Pajamas::ButtonComponent.new(type: :submit, variant: :confirm, button_options: { class: submit_btn_css, aria: { label: _('Destroy') }, data: { confirm: _("Are you sure?"), confirm_btn_variant: "danger" } }) do
      = _('Destroy')