Commit 8ec69284 authored by PaytonBurdette's avatar PaytonBurdette Committed by Andrew Fontaine

Remove form check class

parent b1107c11
...@@ -3,8 +3,7 @@ ...@@ -3,8 +3,7 @@
%fieldset %fieldset
.form-group .form-group
.form-check = f.gitlab_ui_checkbox_component :gravatar_enabled, _('Gravatar enabled')
= f.gitlab_ui_checkbox_component :gravatar_enabled, _('Gravatar enabled')
.form-group .form-group
= f.label :default_projects_limit, _('Default projects limit'), class: 'label-bold' = f.label :default_projects_limit, _('Default projects limit'), class: 'label-bold'
...@@ -36,12 +35,10 @@ ...@@ -36,12 +35,10 @@
.form-group .form-group
= f.label :user_oauth_applications, _('User OAuth applications'), class: 'label-bold' = f.label :user_oauth_applications, _('User OAuth applications'), class: 'label-bold'
.form-check = f.gitlab_ui_checkbox_component :user_oauth_applications, _('Allow users to register any application to use GitLab as an OAuth provider')
= f.gitlab_ui_checkbox_component :user_oauth_applications, _('Allow users to register any application to use GitLab as an OAuth provider')
.form-group .form-group
= f.label :user_default_external, _('New users set to external'), class: 'label-bold' = f.label :user_default_external, _('New users set to external'), class: 'label-bold'
.form-check = f.gitlab_ui_checkbox_component :user_default_external, _('Newly-registered users are external by default')
= f.gitlab_ui_checkbox_component :user_default_external, _('Newly-registered users are external by default')
.gl-mt-3 .gl-mt-3
= _('Internal users') = _('Internal users')
= f.text_field :user_default_internal_regex, placeholder: _('Regex pattern'), class: 'form-control gl-form-input gl-mt-2' = f.text_field :user_default_internal_regex, placeholder: _('Regex pattern'), class: 'form-control gl-form-input gl-mt-2'
...@@ -51,17 +48,15 @@ ...@@ -51,17 +48,15 @@
- unless Gitlab.com? - unless Gitlab.com?
.form-group .form-group
= f.label :deactivate_dormant_users, _('Dormant users'), class: 'label-bold' = f.label :deactivate_dormant_users, _('Dormant users'), class: 'label-bold'
.form-check - dormant_users_help_link = help_page_path('user/admin_area/moderate_users', anchor: 'automatically-deactivate-dormant-users')
- dormant_users_help_link = help_page_path('user/admin_area/moderate_users', anchor: 'automatically-deactivate-dormant-users') - dormant_users_help_link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: dormant_users_help_link }
- dormant_users_help_link_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: dormant_users_help_link } = f.gitlab_ui_checkbox_component :deactivate_dormant_users, _('Deactivate dormant users after 90 days of inactivity'), help_text: _('Users can reactivate their account by signing in. %{link_start}Learn more%{link_end}').html_safe % { link_start: dormant_users_help_link_start, link_end: '</a>'.html_safe }
= f.gitlab_ui_checkbox_component :deactivate_dormant_users, _('Deactivate dormant users after 90 days of inactivity'), help_text: _('Users can reactivate their account by signing in. %{link_start}Learn more%{link_end}').html_safe % { link_start: dormant_users_help_link_start, link_end: '</a>'.html_safe }
.form-group .form-group
= f.label :personal_access_token_prefix, _('Personal Access Token prefix'), class: 'label-light' = f.label :personal_access_token_prefix, _('Personal Access Token prefix'), class: 'label-light'
= f.text_field :personal_access_token_prefix, placeholder: _('Maximum 20 characters'), class: 'form-control gl-form-input' = f.text_field :personal_access_token_prefix, placeholder: _('Maximum 20 characters'), class: 'form-control gl-form-input'
.form-group .form-group
= f.label :user_show_add_ssh_key_message, _('Prompt users to upload SSH keys'), class: 'label-bold' = f.label :user_show_add_ssh_key_message, _('Prompt users to upload SSH keys'), class: 'label-bold'
.form-check = f.gitlab_ui_checkbox_component :user_show_add_ssh_key_message, _("Inform users without uploaded SSH keys that they can't push over SSH until one is added")
= f.gitlab_ui_checkbox_component :user_show_add_ssh_key_message, _("Inform users without uploaded SSH keys that they can't push over SSH until one is added")
= render_if_exists 'admin/application_settings/updating_name_disabled_for_users', form: f = render_if_exists 'admin/application_settings/updating_name_disabled_for_users', form: f
= render_if_exists 'admin/application_settings/availability_on_namespace_setting', form: f = render_if_exists 'admin/application_settings/availability_on_namespace_setting', form: f
......
...@@ -3,5 +3,4 @@ ...@@ -3,5 +3,4 @@
- form = local_assigns.fetch(:form) - form = local_assigns.fetch(:form)
.form-group .form-group
.form-check = form.gitlab_ui_checkbox_component :enforce_pat_expiration, _('Enforce personal access token expiration')
= form.gitlab_ui_checkbox_component :enforce_pat_expiration, _('Enforce personal access token expiration')
...@@ -3,5 +3,4 @@ ...@@ -3,5 +3,4 @@
- form = local_assigns.fetch(:form) - form = local_assigns.fetch(:form)
.form-group .form-group
.form-check = form.gitlab_ui_checkbox_component :enforce_ssh_key_expiration, _('Enforce SSH key expiration')
= form.gitlab_ui_checkbox_component :enforce_ssh_key_expiration, _('Enforce SSH key expiration')
...@@ -4,5 +4,4 @@ ...@@ -4,5 +4,4 @@
.form-group .form-group
= form.label :updating_name_disabled_for_users, _('User restrictions'), class: 'label-bold' = form.label :updating_name_disabled_for_users, _('User restrictions'), class: 'label-bold'
.form-check = form.gitlab_ui_checkbox_component :updating_name_disabled_for_users, _("Prevent users from changing their profile name")
= form.gitlab_ui_checkbox_component :updating_name_disabled_for_users, _("Prevent users from changing their profile name")
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