2018-03-17 18:26:18 +05:30
|
|
|
- parent = @group.parent
|
2017-08-17 22:00:37 +05:30
|
|
|
- group_path = root_url
|
|
|
|
- group_path << parent.full_path + '/' if parent
|
2015-04-26 12:48:37 +05:30
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
.form-group.row
|
|
|
|
= f.label :path, class: 'col-form-label col-sm-2' do
|
2015-04-26 12:48:37 +05:30
|
|
|
Group path
|
|
|
|
.col-sm-10
|
2017-08-17 22:00:37 +05:30
|
|
|
.input-group.gl-field-error-anchor
|
2018-11-08 19:23:39 +05:30
|
|
|
.group-root-path.input-group-prepend.has-tooltip{ title: group_path, :'data-placement' => 'bottom' }
|
|
|
|
.input-group-text
|
|
|
|
%span>= root_url
|
|
|
|
- if parent
|
|
|
|
%strong= parent.full_path + '/'
|
2018-03-17 18:26:18 +05:30
|
|
|
= f.hidden_field :parent_id
|
2015-04-26 12:48:37 +05:30
|
|
|
= f.text_field :path, placeholder: 'open-source', class: 'form-control',
|
2017-08-17 22:00:37 +05:30
|
|
|
autofocus: local_assigns[:autofocus] || false, required: true,
|
2017-09-10 17:25:29 +05:30
|
|
|
pattern: Gitlab::PathRegex::NAMESPACE_FORMAT_REGEX_JS,
|
2017-08-17 22:00:37 +05:30
|
|
|
title: 'Please choose a group path with no special characters.',
|
|
|
|
"data-bind-in" => "#{'create_chat_team' if Gitlab.config.mattermost.enabled}"
|
|
|
|
|
2015-04-26 12:48:37 +05:30
|
|
|
- if @group.persisted?
|
|
|
|
.alert.alert-warning.prepend-top-10
|
2018-03-17 18:26:18 +05:30
|
|
|
Changing group path can have unintended side effects.
|
|
|
|
= succeed '.' do
|
|
|
|
= link_to 'Learn more', help_page_path('user/group/index', anchor: 'changing-a-groups-path'), target: '_blank'
|
2015-04-26 12:48:37 +05:30
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
.form-group.row.group-name-holder
|
|
|
|
= f.label :name, class: 'col-form-label col-sm-2' do
|
2017-08-17 22:00:37 +05:30
|
|
|
Group name
|
|
|
|
.col-sm-10
|
|
|
|
= f.text_field :name, class: 'form-control',
|
|
|
|
required: true,
|
|
|
|
title: 'You can choose a descriptive name different from the path.'
|
|
|
|
|
2018-10-15 14:42:47 +05:30
|
|
|
- if @group.persisted?
|
2018-11-08 19:23:39 +05:30
|
|
|
.form-group.row.group-name-holder
|
|
|
|
= f.label :id, class: 'col-form-label col-sm-2' do
|
2018-10-15 14:42:47 +05:30
|
|
|
= _("Group ID")
|
|
|
|
.col-sm-10
|
|
|
|
= f.text_field :id, class: 'form-control', readonly: true
|
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
.form-group.row.group-description-holder
|
|
|
|
= f.label :description, class: 'col-form-label col-sm-2'
|
2015-04-26 12:48:37 +05:30
|
|
|
.col-sm-10
|
|
|
|
= f.text_area :description, maxlength: 250,
|
|
|
|
class: 'form-control js-gfm-input', rows: 4
|