2021-11-09 10:12:42 -05:00
|
|
|
- remove_form_id = 'js-remove-group-form'
|
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
|
2021-12-07 01:13:51 -05:00
|
|
|
= s_("GroupSettings|Changing a group's URL can have unintended side effects.")
|
|
|
|
= link_to _('Learn more.'), help_page_path('user/group/index', anchor: 'change-a-groups-path'), target: '_blank', rel: 'noopener noreferrer'
|
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,
|
2021-07-21 08:09:35 -04:00
|
|
|
title: group_url_error_message,
|
|
|
|
maxlength: ::Namespace::URL_MAX_LENGTH,
|
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
|
2021-11-09 10:12:42 -05:00
|
|
|
= render 'groups/settings/remove', group: @group, remove_form_id: remove_form_id
|
2020-01-24 10:09:00 -05:00
|
|
|
= render_if_exists 'groups/settings/restore', group: @group
|
2021-11-09 10:12:42 -05:00
|
|
|
= render_if_exists 'groups/settings/immediately_remove', group: @group, remove_form_id: remove_form_id
|