Commit 9696e49f authored by Clement Ho's avatar Clement Ho

Merge branch 'jivl-fix-admin-area-settings-unstyled-form-controls' into 'master'

Fix unstyled form controls for admin settings

Closes #6214

See merge request gitlab-org/gitlab-ee!6047
parents 4273fc6a 18fab3b4
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
.col-sm-10 .col-sm-10
= f.number_field :max_attachment_size, class: 'form-control' = f.number_field :max_attachment_size, class: 'form-control'
= render 'repository_size_limit_setting', form: f = render 'repository_size_limit_setting', form: f
.form-group.row .form-group.row
= f.label :session_expire_delay, 'Session duration (minutes)', class: 'col-form-label col-sm-2' = f.label :session_expire_delay, 'Session duration (minutes)', class: 'col-form-label col-sm-2'
...@@ -44,8 +44,8 @@ ...@@ -44,8 +44,8 @@
= f.label :check_namespace_plan, 'Check feature availability on namespace plan', class: 'col-form-label col-sm-2' = f.label :check_namespace_plan, 'Check feature availability on namespace plan', class: 'col-form-label col-sm-2'
.col-sm-10 .col-sm-10
.form-check .form-check
= f.label :check_namespace_plan do = f.check_box :check_namespace_plan, class: 'form-check-input'
= f.check_box :check_namespace_plan = f.label :check_namespace_plan, class: 'form-check-label' do
Enabling this will only make licensed EE features available to projects if the project namespace's plan Enabling this will only make licensed EE features available to projects if the project namespace's plan
includes the feature or if the project is public. includes the feature or if the project is public.
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
.form-group.row .form-group.row
.offset-sm-2.col-sm-10 .offset-sm-2.col-sm-10
.form-check .form-check
= radio_button_tag :blacklist_type, :file, class: 'form-check-input' = radio_button_tag :blacklist_type, :file, false, class: "form-check-input"
= label_tag :blacklist_type_file, class: 'form-check-label' do = label_tag :blacklist_type_file, class: 'form-check-label' do
.option-title .option-title
Upload blacklist file Upload blacklist file
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
- form = local_assigns.fetch(:form) - form = local_assigns.fetch(:form)
.form-group .form-group.row
= form.label :repository_size_limit, class: 'col-form-label col-sm-2' do = form.label :repository_size_limit, class: 'col-form-label col-sm-2' do
Size limit per repository (MB) Size limit per repository (MB)
.col-sm-10 .col-sm-10
......
.form-group .form-group.row
= form.label :shared_runners_minutes, 'Pipeline minutes quota', class: 'col-form-label col-sm-2' = form.label :shared_runners_minutes, 'Pipeline minutes quota', class: 'col-form-label col-sm-2'
.col-sm-10 .col-sm-10
= form.number_field :shared_runners_minutes, class: 'form-control' = form.number_field :shared_runners_minutes, class: 'form-control'
......
- return unless License.feature_available?(:project_creation_level) - return unless License.feature_available?(:project_creation_level)
- form = local_assigns.fetch(:form) - form = local_assigns.fetch(:form)
- application_setting = local_assigns.fetch(:application_setting) - application_setting = local_assigns.fetch(:application_setting)
.form-group .form-group.row
= form.label s_('ProjectCreationLevel|Default project creation protection'), class: 'col-form-label col-sm-2' = form.label s_('ProjectCreationLevel|Default project creation protection'), class: 'col-form-label col-sm-2'
.col-sm-10 .col-sm-10
= form.select :default_project_creation, options_for_select(Gitlab::Access.project_creation_options, application_setting.default_project_creation), {}, class: 'form-control' = form.select :default_project_creation, options_for_select(Gitlab::Access.project_creation_options, application_setting.default_project_creation), {}, class: 'form-control'
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
- type = local_assigns.fetch(:type) - type = local_assigns.fetch(:type)
- label_class = (type == :project) ? 'label-light' : 'col-form-label' - label_class = (type == :project) ? 'label-light' : 'col-form-label'
.form-group .form-group.row
= form.label :repository_size_limit, class: label_class do = form.label :repository_size_limit, class: label_class do
Repository size limit (MB) Repository size limit (MB)
- if type == :project - if type == :project
......
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