summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorDiego Souza <diegosouza.br@gmail.com>2017-07-04 15:18:51 +0000
committerRémy Coutable <remy@rymai.me>2017-07-04 15:18:51 +0000
commit2210a71b17d41ca0f1b5b4e619aa7fa8f41ad5cd (patch)
treec76b9979126dbaa297dcb079dfb46a0d79683b6d /app/views
parent016b9f2565f85b9c77a5a779b64483ca1d4e1776 (diff)
downloadgitlab-ce-2210a71b17d41ca0f1b5b4e619aa7fa8f41ad5cd.tar.gz
Remove group modal like remove project modal. Closes #33130
Diffstat (limited to 'app/views')
-rw-r--r--app/views/groups/edit.html.haml15
1 files changed, 9 insertions, 6 deletions
diff --git a/app/views/groups/edit.html.haml b/app/views/groups/edit.html.haml
index 7d5add3cc1c..9ebb3894c55 100644
--- a/app/views/groups/edit.html.haml
+++ b/app/views/groups/edit.html.haml
@@ -45,10 +45,13 @@
.panel.panel-danger
.panel-heading Remove group
.panel-body
- %p
- Removing group will cause all child projects and resources to be removed.
- %br
- %strong Removed group can not be restored!
+ = form_tag(@group, method: :delete) do
+ %p
+ Removing group will cause all child projects and resources to be removed.
+ %br
+ %strong Removed group can not be restored!
- .form-actions
- = link_to 'Remove group', @group, data: {confirm: 'Removed group can not be restored! Are you sure?'}, method: :delete, class: "btn btn-remove"
+ .form-actions
+ = button_to 'Remove group', '#', class: "btn btn-remove js-confirm-danger", data: { "confirm-danger-message" => remove_group_message(@group) }
+
+= render 'shared/confirm_modal', phrase: @group.path