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

30 lines
1.5 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
2020-10-24 23:57:45 +05:30
%h4.warning-title= s_('GroupSettings|Change group URL')
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
2020-10-24 23:57:45 +05:30
= s_('GroupSettings|Changing group URL can have unintended side effects.')
2018-11-08 19:23:39 +05:30
= succeed '.' do
2021-04-17 20:07:23 +05:30
= link_to _('Learn more'), help_page_path('user/group/index', anchor: 'change-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,
2020-10-24 23:57:45 +05:30
title: s_('GroupSettings|Please choose a group URL with no special characters.'),
2018-11-08 19:23:39 +05:30
"data-bind-in" => "#{'create_chat_team' if Gitlab.config.mattermost.enabled}"
2021-03-11 19:13:27 +05:30
= f.submit s_('GroupSettings|Change group URL'), class: 'btn gl-button btn-warning'
2018-11-08 19:23:39 +05:30
2021-09-30 23:02:18 +05:30
= render 'groups/settings/transfer', group: @group
2020-03-13 15:44:24 +05:30
= render 'groups/settings/remove', group: @group
= render_if_exists 'groups/settings/restore', group: @group