debian-mirror-gitlab/app/views/groups/settings/_advanced.html.haml

46 lines
2.8 KiB
Text
Raw Normal View History

2020-05-24 23:13:21 +05:30
= render 'groups/settings/export', group: @group
2018-11-08 19:23:39 +05:30
.sub-section
2019-12-21 20:55:43 +05:30
%h4.warning-title= s_('GroupSettings|Change group path')
2018-11-08 19:23:39 +05:30
= form_for @group, html: { multipart: true, class: 'gl-show-field-errors' }, authenticity_token: true do |f|
= form_errors(@group)
.form-group
%p
2019-12-21 20:55:43 +05:30
= s_('GroupSettings|Changing group path can have unintended side effects.')
2018-11-08 19:23:39 +05:30
= succeed '.' do
2019-12-21 20:55:43 +05:30
= link_to _('Learn more'), help_page_path('user/group/index', anchor: 'changing-a-groups-path'), target: '_blank'
2018-11-08 19:23:39 +05:30
.input-group.gl-field-error-anchor
.group-root-path.input-group-prepend.has-tooltip{ title: group_path(@group), :'data-placement' => 'bottom' }
.input-group-text
%span>= root_url
2018-12-05 23:21:45 +05:30
- if @group.parent
%strong= @group.parent.full_path + '/'
2018-11-08 19:23:39 +05:30
= f.hidden_field :parent_id
= f.text_field :path, placeholder: 'open-source', class: 'form-control',
autofocus: local_assigns[:autofocus] || false, required: true,
pattern: Gitlab::PathRegex::NAMESPACE_FORMAT_REGEX_JS,
2019-12-21 20:55:43 +05:30
title: s_('GroupSettings|Please choose a group path with no special characters.'),
2018-11-08 19:23:39 +05:30
"data-bind-in" => "#{'create_chat_team' if Gitlab.config.mattermost.enabled}"
2019-12-21 20:55:43 +05:30
= f.submit s_('GroupSettings|Change group path'), class: 'btn btn-warning'
2018-11-08 19:23:39 +05:30
2019-10-12 21:52:04 +05:30
.sub-section
2019-12-21 20:55:43 +05:30
%h4.warning-title= s_('GroupSettings|Transfer group')
2019-12-04 20:38:33 +05:30
= form_for @group, url: transfer_group_path(@group), method: :put, html: { class: 'js-group-transfer-form' } do |f|
2019-10-12 21:52:04 +05:30
.form-group
= dropdown_tag('Select parent group', options: { toggle_class: 'js-groups-dropdown', title: 'Parent Group', filter: true, dropdown_class: 'dropdown-open-top dropdown-group-transfer', placeholder: 'Search groups', data: { data: parent_group_options(@group) } })
= hidden_field_tag 'new_parent_group_id'
2018-11-08 19:23:39 +05:30
2019-10-12 21:52:04 +05:30
%ul
2019-12-21 20:55:43 +05:30
- side_effects_link_start = '<a href="https://docs.gitlab.com/ce/user/project/index.html#redirects-when-changing-repository-paths" target="_blank">'
- warning_text = s_("GroupSettings|Be careful. Changing a group's parent can have unintended %{side_effects_link_start}side effects%{side_effects_link_end}.") % { side_effects_link_start: side_effects_link_start, side_effects_link_end:'</a>' }
%li= warning_text.html_safe
%li= s_('GroupSettings|You can only transfer the group to a group you manage.')
%li= s_('GroupSettings|You will need to update your local repositories to point to the new location.')
%li= s_("GroupSettings|If the parent group's visibility is lower than the group current visibility, visibility levels for subgroups and projects will be changed to match the new parent group's visibility.")
= f.submit s_('GroupSettings|Transfer group'), class: 'btn btn-warning'
2018-12-13 13:39:08 +05:30
2020-03-09 13:42:32 +05:30
= render 'groups/settings/remove', group: @group
= render_if_exists 'groups/settings/restore', group: @group