Commit 7ae993ae authored by Clement Ho's avatar Clement Ho

Fix new group form

parent ade61c96
...@@ -174,7 +174,7 @@ ...@@ -174,7 +174,7 @@
.option-description, .option-description,
.option-disabled-reason { .option-disabled-reason {
margin-left: 29px; margin-left: 45px;
color: $project-option-descr-color; color: $project-option-descr-color;
} }
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
- group_path = root_url - group_path = root_url
- group_path << parent.full_path + '/' if parent - group_path << parent.full_path + '/' if parent
.form-group .form-group.row
= f.label :path, class: 'col-form-label' do = f.label :path, class: 'col-form-label col-sm-2' do
Group path Group path
.col-sm-10 .col-sm-10
.input-group.gl-field-error-anchor .input-group.gl-field-error-anchor
...@@ -25,16 +25,16 @@ ...@@ -25,16 +25,16 @@
= succeed '.' do = succeed '.' do
= link_to 'Learn more', help_page_path('user/group/index', anchor: 'changing-a-groups-path'), target: '_blank' = link_to 'Learn more', help_page_path('user/group/index', anchor: 'changing-a-groups-path'), target: '_blank'
.form-group.group-name-holder .form-group.row.group-name-holder
= f.label :name, class: 'col-form-label' do = f.label :name, class: 'col-form-label col-sm-2' do
Group name Group name
.col-sm-10 .col-sm-10
= f.text_field :name, class: 'form-control', = f.text_field :name, class: 'form-control',
required: true, required: true,
title: 'You can choose a descriptive name different from the path.' title: 'You can choose a descriptive name different from the path.'
.form-group.group-description-holder .form-group.row.group-description-holder
= f.label :description, class: 'col-form-label' = f.label :description, class: 'col-form-label col-sm-2'
.col-sm-10 .col-sm-10
= f.text_area :description, maxlength: 250, = f.text_area :description, maxlength: 250,
class: 'form-control js-gfm-input', rows: 4 class: 'form-control js-gfm-input', rows: 4
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
- disallowed = disallowed_visibility_level?(form_model, level) - disallowed = disallowed_visibility_level?(form_model, level)
- restricted = restricted_visibility_levels.include?(level) - restricted = restricted_visibility_levels.include?(level)
- disabled = disallowed || restricted - disabled = disallowed || restricted
.form-check{ class: [('disabled' if disabled), ('restricted' if restricted)] } .form-check.pl-0{ class: [('disabled' if disabled), ('restricted' if restricted)] }
= form.label "#{model_method}_#{level}" do = form.label "#{model_method}_#{level}" do
= form.radio_button model_method, level, checked: (selected_level == level), disabled: disabled = form.radio_button model_method, level, checked: (selected_level == level), disabled: disabled
= visibility_level_icon(level) = visibility_level_icon(level)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment