2020-04-21 14:09:31 -04:00
|
|
|
= render 'groups/settings/export', group: @group
|
|
|
|
|
2018-05-28 08:58:39 -04:00
|
|
|
.sub-section
|
2020-07-30 14:09:39 -04:00
|
|
|
%h4.warning-title= s_('GroupSettings|Change group URL')
|
2018-05-28 08:58:39 -04:00
|
|
|
= form_for @group, html: { multipart: true, class: 'gl-show-field-errors' }, authenticity_token: true do |f|
|
|
|
|
= form_errors(@group)
|
|
|
|
.form-group
|
|
|
|
%p
|
2020-07-30 14:09:39 -04:00
|
|
|
= s_('GroupSettings|Changing group URL can have unintended side effects.')
|
2018-05-28 08:58:39 -04:00
|
|
|
= succeed '.' do
|
2021-03-01 19:11:26 -05:00
|
|
|
= link_to _('Learn more'), help_page_path('user/group/index', anchor: 'change-a-groups-path'), target: '_blank'
|
2018-05-28 08:58:39 -04:00
|
|
|
|
|
|
|
.input-group.gl-field-error-anchor
|
2018-05-28 11:02:04 -04:00
|
|
|
.group-root-path.input-group-prepend.has-tooltip{ title: group_path(@group), :'data-placement' => 'bottom' }
|
2018-05-28 08:58:39 -04:00
|
|
|
.input-group-text
|
|
|
|
%span>= root_url
|
2018-10-06 14:05:14 -04:00
|
|
|
- if @group.parent
|
|
|
|
%strong= @group.parent.full_path + '/'
|
2018-05-28 08:58:39 -04:00
|
|
|
= 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,
|
2020-07-30 14:09:39 -04:00
|
|
|
title: s_('GroupSettings|Please choose a group URL with no special characters.'),
|
2018-05-28 08:58:39 -04:00
|
|
|
"data-bind-in" => "#{'create_chat_team' if Gitlab.config.mattermost.enabled}"
|
2021-02-11 19:09:00 -05:00
|
|
|
= f.submit s_('GroupSettings|Change group URL'), class: 'btn gl-button btn-warning'
|
2018-05-28 08:58:39 -04:00
|
|
|
|
2021-07-13 11:08:38 -04:00
|
|
|
= render 'groups/settings/transfer', group: @group
|
2020-01-24 10:09:00 -05:00
|
|
|
= render 'groups/settings/remove', group: @group
|
|
|
|
= render_if_exists 'groups/settings/restore', group: @group
|