gitlab-org--gitlab-foss/app/views/shared/_group_form.html.haml

44 lines
1.7 KiB
Text
Raw Normal View History

- content_for :page_specific_javascripts do
= page_specific_javascript_bundle_tag('group')
2017-08-09 06:58:00 -04:00
- parent = @group.parent
- group_path = root_url
- group_path << parent.full_path + '/' if parent
2014-10-20 18:25:44 -04:00
.form-group
= f.label :path, class: 'control-label' do
Group path
2014-10-20 18:25:44 -04:00
.col-sm-10
.input-group.gl-field-error-anchor
.group-root-path.input-group-addon.has-tooltip{ title: group_path, :'data-placement' => 'bottom' }
%span>= root_url
- if parent
%strong= parent.full_path + '/'
2017-08-09 06:58:00 -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,
title: 'Please choose a group path with no special characters.',
2017-02-20 08:51:47 -05:00
"data-bind-in" => "#{'create_chat_team' if Gitlab.config.mattermost.enabled}"
- if @group.persisted?
2015-03-18 23:16:36 -04:00
.alert.alert-warning.prepend-top-10
%ul
%li Changing group path can have unintended side effects.
%li Renaming group path will rename directory for all related projects
%li It will change web url for access group and group projects.
%li It will change the git path to repositories under this group.
2014-10-20 18:25:44 -04:00
.form-group.group-name-holder
= f.label :name, class: 'control-label' do
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.'
2014-10-20 18:25:44 -04:00
.form-group.group-description-holder
= f.label :description, class: 'control-label'
2014-10-20 18:25:44 -04:00
.col-sm-10
= f.text_area :description, maxlength: 250,
class: 'form-control js-gfm-input', rows: 4