diff options
author | Clement Ho <ClemMakesApps@gmail.com> | 2018-04-12 15:11:22 -0500 |
---|---|---|
committer | Clement Ho <ClemMakesApps@gmail.com> | 2018-04-12 15:11:22 -0500 |
commit | c552328617202bd1225abd3e84fc7f4a4b79e4fa (patch) | |
tree | 93b5f95af70561784bb29bd6f7dbd1ef12e69b29 /app/views/admin/application_settings/_visibility_and_access.html.haml | |
parent | 705d7f703b10f5e1a066d0623bf32d07868d6668 (diff) | |
download | gitlab-ce-c552328617202bd1225abd3e84fc7f4a4b79e4fa.tar.gz |
[skip ci] .form-horizontal => .form-group.row
Diffstat (limited to 'app/views/admin/application_settings/_visibility_and_access.html.haml')
-rw-r--r-- | app/views/admin/application_settings/_visibility_and_access.html.haml | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/app/views/admin/application_settings/_visibility_and_access.html.haml b/app/views/admin/application_settings/_visibility_and_access.html.haml index 5506ceab58f..40a3250dca8 100644 --- a/app/views/admin/application_settings/_visibility_and_access.html.haml +++ b/app/views/admin/application_settings/_visibility_and_access.html.haml @@ -1,24 +1,24 @@ -= form_for @application_setting, url: admin_application_settings_path, html: { class: 'form-horizontal fieldset-form' } do |f| += form_for @application_setting, url: admin_application_settings_path, html: { class: 'fieldset-form' } do |f| = form_errors(@application_setting) %fieldset - .form-group + .form-group.row = f.label :default_branch_protection, class: 'col-form-label col-sm-2' .col-sm-10 = f.select :default_branch_protection, options_for_select(Gitlab::Access.protection_options, @application_setting.default_branch_protection), {}, class: 'form-control' - .form-group.visibility-level-setting + .form-group.row.visibility-level-setting = f.label :default_project_visibility, class: 'col-form-label col-sm-2' .col-sm-10 = render('shared/visibility_radios', model_method: :default_project_visibility, form: f, selected_level: @application_setting.default_project_visibility, form_model: Project.new) - .form-group.visibility-level-setting + .form-group.row.visibility-level-setting = f.label :default_snippet_visibility, class: 'col-form-label col-sm-2' .col-sm-10 = render('shared/visibility_radios', model_method: :default_snippet_visibility, form: f, selected_level: @application_setting.default_snippet_visibility, form_model: ProjectSnippet.new) - .form-group.visibility-level-setting + .form-group.row.visibility-level-setting = f.label :default_group_visibility, class: 'col-form-label col-sm-2' .col-sm-10 = render('shared/visibility_radios', model_method: :default_group_visibility, form: f, selected_level: @application_setting.default_group_visibility, form_model: Group.new) - .form-group + .form-group.row = f.label :restricted_visibility_levels, class: 'col-form-label col-sm-2' .col-sm-10 - checkbox_name = 'application_setting[restricted_visibility_levels][]' @@ -29,7 +29,7 @@ %span.form-text.text-muted#restricted-visibility-help Selected levels cannot be used by non-admin users for projects or snippets. If the public level is restricted, user profiles are only visible to logged in users. - .form-group + .form-group.row = f.label :import_sources, class: 'col-form-label col-sm-2' .col-sm-10 - import_sources_checkboxes('import-sources-help').each do |source| @@ -42,14 +42,14 @@ and GitLab.com = link_to "(?)", help_page_path("integration/gitlab") - .form-group + .form-group.row .col-sm-offset-2.col-sm-10 .form-check = f.label :project_export_enabled do = f.check_box :project_export_enabled Project export enabled - .form-group + .form-group.row %label.col-form-label.col-sm-2 Enabled Git access protocols .col-sm-10 = select(:application_setting, :enabled_git_access_protocol, [['Both SSH and HTTP(S)', nil], ['Only SSH', 'ssh'], ['Only HTTP(S)', 'http']], {}, class: 'form-control') @@ -58,7 +58,7 @@ - ApplicationSetting::SUPPORTED_KEY_TYPES.each do |type| - field_name = :"#{type}_key_restriction" - .form-group + .form-group.row = f.label field_name, "#{type.upcase} SSH keys", class: 'col-form-label col-sm-2' .col-sm-10 = f.select field_name, key_restriction_options_for_select(type), {}, class: 'form-control' |