diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-12-22 13:50:58 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-12-22 13:50:58 +0200 |
commit | ed2bcf952be8e6431ad5d3fb7b39927880b512b0 (patch) | |
tree | 219bc66aa9a33fca6e020facd215d348a7af8adc /app/views/shared/_group_form.html.haml | |
parent | 59bb635e0e94a0e6c61a0c53cdb70a4eb7bd3910 (diff) | |
download | gitlab-ce-ed2bcf952be8e6431ad5d3fb7b39927880b512b0.tar.gz |
Set group path during creation
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 | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/app/views/shared/_group_form.html.haml b/app/views/shared/_group_form.html.haml index 93294e42505..e0bf77db10f 100644 --- a/app/views/shared/_group_form.html.haml +++ b/app/views/shared/_group_form.html.haml @@ -1,9 +1,19 @@ +- 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' + .form-group - = f.label :name, class: 'control-label' do - Group name + = f.label :path, class: 'control-label' do + Group path .col-sm-10 - = f.text_field :name, placeholder: 'Example Group', class: 'form-control', - autofocus: local_assigns[:autofocus] || false + .input-group + .input-group-addon + = root_url + = f.text_field :path, placeholder: 'open-source', class: 'form-control', + autofocus: local_assigns[:autofocus] || false .form-group.group-description-holder = f.label :description, 'Details', class: 'control-label' |