summaryrefslogtreecommitdiff
path: root/app/views/groups/edit.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/groups/edit.html.haml')
-rw-r--r--app/views/groups/edit.html.haml14
1 files changed, 4 insertions, 10 deletions
diff --git a/app/views/groups/edit.html.haml b/app/views/groups/edit.html.haml
index 913eaf278b2..6d844c3e428 100644
--- a/app/views/groups/edit.html.haml
+++ b/app/views/groups/edit.html.haml
@@ -57,27 +57,21 @@
.form-actions
= button_to 'Remove group', '#', class: "btn btn-remove js-confirm-danger", data: { "confirm-danger-message" => remove_group_message(@group) }
-
- if supports_nested_groups?
.panel.panel-warning
.panel-heading Transfer group
.panel-body
- = form_for @group, url: transfer_group_path(@group), method: :put, remote: true do |f|
+ = form_for @group, url: transfer_group_path(@group), method: :put do |f|
.form-group
= label_tag :new_parent_group_id, nil, class: 'label-light' do
%span Parent Group
.form-group
- = select_tag :new_parent_group_id, parent_group_options, include_blank: 'Select', class: 'select2'
+ = select_tag :new_parent_group_id, parent_group_options, include_blank: 'No parent group', class: 'select2'
%ul
%li Be careful. Changing a group's parent can have unintended side effects.
- %li You can only transfer the group to a group you owned.
+ %li You can only transfer the group to a group you manage.
%li You will need to update your local repositories to point to the new location.
%li Group and project visibility levels will be changed to match the new parent group's values.
- %li Permissions of the members of the group will not be transferred. You will need to change them manually.
- = f.submit 'Transfer Group', class: "btn btn-warning"
- - if group_can_become_root?(@group)
- or
- = link_to 'Convert to root group', convert_to_root_group_path(@group), remote: true, method: :put, class: "btn btn-warning"
-
+ = f.submit 'Transfer group', class: "btn btn-warning"
= render 'shared/confirm_modal', phrase: @group.path