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

32 lines
1.7 KiB
Text
Raw Normal View History

2021-12-11 22:18:48 +05:30
- remove_form_id = 'js-remove-group-form'
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|
2022-07-23 23:45:48 +05:30
= form_errors(@group, pajamas_alert: true)
2018-11-08 19:23:39 +05:30
.form-group
%p
2022-01-26 12:08:38 +05:30
= 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-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,
2021-10-27 15:23:28 +05:30
title: group_url_error_message,
maxlength: ::Namespace::URL_MAX_LENGTH,
2018-11-08 19:23:39 +05:30
"data-bind-in" => "#{'create_chat_team' if Gitlab.config.mattermost.enabled}"
2022-07-23 23:45:48 +05:30
= f.submit s_('GroupSettings|Change group URL'), class: 'btn gl-button btn-danger'
2018-11-08 19:23:39 +05:30
2021-09-30 23:02:18 +05:30
= render 'groups/settings/transfer', group: @group
2021-12-11 22:18:48 +05:30
= render 'groups/settings/remove', group: @group, remove_form_id: remove_form_id
2020-03-13 15:44:24 +05:30
= render_if_exists 'groups/settings/restore', group: @group
2021-12-11 22:18:48 +05:30
= render_if_exists 'groups/settings/immediately_remove', group: @group, remove_form_id: remove_form_id