2014-12-22 06:50:58 -05:00
|
|
|
- if @group.persisted?
|
|
|
|
.form-group
|
|
|
|
= f.label :name, class: 'control-label' do
|
|
|
|
Group name
|
|
|
|
.col-sm-10
|
|
|
|
= f.text_field :name, placeholder: 'open-source', class: 'form-control'
|
|
|
|
|
2014-10-20 18:25:44 -04:00
|
|
|
.form-group
|
2014-12-22 06:50:58 -05:00
|
|
|
= f.label :path, class: 'control-label' do
|
|
|
|
Group path
|
2014-10-20 18:25:44 -04:00
|
|
|
.col-sm-10
|
2016-10-21 07:54:24 -04:00
|
|
|
.input-group.gl-field-error-anchor
|
2014-12-22 06:50:58 -05:00
|
|
|
.input-group-addon
|
|
|
|
= root_url
|
|
|
|
= f.text_field :path, placeholder: 'open-source', class: 'form-control',
|
2016-11-25 11:35:25 -05:00
|
|
|
autofocus: local_assigns[:autofocus] || false, required: true,
|
|
|
|
pattern: Gitlab::Regex::NAMESPACE_REGEX_STR_SIMPLE,
|
|
|
|
title: 'Please choose a group name with no special characters.'
|
2016-10-21 07:54:24 -04:00
|
|
|
|
2014-12-22 08:02:47 -05:00
|
|
|
- if @group.persisted?
|
2015-03-18 23:16:36 -04:00
|
|
|
.alert.alert-warning.prepend-top-10
|
2014-12-22 08:02:47 -05:00
|
|
|
%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-description-holder
|
2015-12-02 08:30:12 -05:00
|
|
|
= 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
|