diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2017-01-24 17:32:34 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2017-02-07 15:37:36 +0200 |
commit | f39dbf3d3d4d5c99910043e8793a96246f0039fe (patch) | |
tree | 3c57925c524cb0a21ee189e352e8b46e356229bc /app/views/shared/_group_form.html.haml | |
parent | da359c46b598ba44cff1829ab4abe49c4c225ae2 (diff) | |
download | gitlab-ce-f39dbf3d3d4d5c99910043e8793a96246f0039fe.tar.gz |
Allow creating nested group via UIdz-create-nested-groups-via-ui
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/shared/_group_form.html.haml')
-rw-r--r-- | app/views/shared/_group_form.html.haml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/views/shared/_group_form.html.haml b/app/views/shared/_group_form.html.haml index 0bc851b4256..efb207b9916 100644 --- a/app/views/shared/_group_form.html.haml +++ b/app/views/shared/_group_form.html.haml @@ -1,3 +1,4 @@ +- parent = Group.find_by(id: params[:parent_id] || @group.parent_id) - if @group.persisted? .form-group = f.label :name, class: 'control-label' do @@ -11,11 +12,15 @@ .col-sm-10 .input-group.gl-field-error-anchor .input-group-addon - = root_url + %span>= root_url + - if parent + %strong= parent.full_path + '/' = f.text_field :path, placeholder: 'open-source', class: 'form-control', autofocus: local_assigns[:autofocus] || false, required: true, pattern: Gitlab::Regex::NAMESPACE_REGEX_STR_SIMPLE, title: 'Please choose a group name with no special characters.' + - if parent + = f.hidden_field :parent_id, value: parent.id - if @group.persisted? .alert.alert-warning.prepend-top-10 |