summaryrefslogtreecommitdiff
path: root/app/views/shared/doorkeeper/applications/_delete_form.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/shared/doorkeeper/applications/_delete_form.html.haml')
-rw-r--r--app/views/shared/doorkeeper/applications/_delete_form.html.haml10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/views/shared/doorkeeper/applications/_delete_form.html.haml b/app/views/shared/doorkeeper/applications/_delete_form.html.haml
new file mode 100644
index 00000000000..caa553bc2ef
--- /dev/null
+++ b/app/views/shared/doorkeeper/applications/_delete_form.html.haml
@@ -0,0 +1,10 @@
+- submit_btn_css ||= 'gl-button btn btn-danger btn-sm'
+= form_tag path do
+ %input{ :name => "_method", :type => "hidden", :value => "delete" }
+ - if defined? small
+ = button_tag type: "submit", class: "gl-button btn btn-danger btn-icon", data: { confirm: _("Are you sure?") } do
+ %span.sr-only
+ = _('Destroy')
+ = sprite_icon('remove')
+ - else
+ = submit_tag _('Destroy'), data: { confirm: _("Are you sure?") }, class: submit_btn_css