= form_for @application_setting, url: admin_application_settings_path, html: { class: 'form-horizontal fieldset-form' } do |f| - if @application_setting.errors.any? #error_explanation .alert.alert-danger - @application_setting.errors.full_messages.each do |msg| %p= msg %fieldset %legend Features .form-group = f.label :signup_enabled, class: 'control-label' .col-sm-10 = f.check_box :signup_enabled, class: 'checkbox' .form-group = f.label :signin_enabled, class: 'control-label' .col-sm-10 = f.check_box :signin_enabled, class: 'checkbox' .form-group = f.label :gravatar_enabled, class: 'control-label' .col-sm-10 = f.check_box :gravatar_enabled, class: 'checkbox' %fieldset %legend Misc .form-group = f.label :default_projects_limit, class: 'control-label' .col-sm-10 = f.number_field :default_projects_limit, class: 'form-control' .form-group = f.label :default_branch_protection, class: 'control-label' .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 = f.label :home_page_url, class: 'control-label' .col-sm-10 = f.text_field :home_page_url, class: 'form-control', placeholder: 'http://company.example.com' %span.help-block We will redirect non-logged in users to this page .form-group = f.label :sign_in_text, class: 'control-label' .col-sm-10 = f.text_area :sign_in_text, class: 'form-control' .form-actions = f.submit 'Save', class: 'btn btn-primary'