Commit f6b49f3a authored by Eduardo Sanz García's avatar Eduardo Sanz García Committed by Miguel Rincon

Revert "Improved the aligment between label and inputs"

This reverts commit b8007b12130385f025d2657bf711947254417482.
parent 348c4e6e
...@@ -57,7 +57,6 @@ linters: ...@@ -57,7 +57,6 @@ linters:
- "app/views/admin/spam_logs/_spam_log.html.haml" - "app/views/admin/spam_logs/_spam_log.html.haml"
- "app/views/admin/spam_logs/index.html.haml" - "app/views/admin/spam_logs/index.html.haml"
- "app/views/admin/system_info/show.html.haml" - "app/views/admin/system_info/show.html.haml"
- "app/views/admin/users/_access_levels.html.haml"
- "app/views/admin/users/_form.html.haml" - "app/views/admin/users/_form.html.haml"
- "app/views/admin/users/_head.html.haml" - "app/views/admin/users/_head.html.haml"
- "app/views/admin/users/_profile.html.haml" - "app/views/admin/users/_profile.html.haml"
......
%fieldset %fieldset
%legend Access %legend
= s_('AdminUsers|Access')
.form-group.row .form-group.row
.col-sm-2.col-form-label .col-sm-2.col-form-label
= f.label :projects_limit = f.label :projects_limit
...@@ -7,43 +8,43 @@ ...@@ -7,43 +8,43 @@
= f.number_field :projects_limit, min: 0, max: Gitlab::Database::MAX_INT_VALUE, class: 'form-control' = f.number_field :projects_limit, min: 0, max: Gitlab::Database::MAX_INT_VALUE, class: 'form-control'
.form-group.row .form-group.row
.col-sm-2.col-form-label .col-sm-2.col-form-label.gl-pt-0
= f.label :can_create_group = f.label :can_create_group
.col-sm-10 .col-sm-10
= f.check_box :can_create_group = f.check_box :can_create_group
.form-group.row .form-group.row
.col-sm-2.col-form-label .col-sm-2.col-form-label.gl-pt-0
= f.label :access_level = f.label :access_level
.col-sm-10 .col-sm-10
- editing_current_user = (current_user == @user) - editing_current_user = (current_user == @user)
= f.radio_button :access_level, :regular, disabled: editing_current_user = f.radio_button :access_level, :regular, disabled: editing_current_user
= f.label :access_level_regular, class: 'font-weight-bold' do = f.label :access_level_regular, class: 'font-weight-bold' do
Regular = s_('AdminUsers|Regular')
%p.light %p.light
Regular users have access to their groups and projects = s_('AdminUsers|Regular users have access to their groups and projects')
= render_if_exists 'admin/users/auditor_access_level_radio', f: f, disabled: editing_current_user = render_if_exists 'admin/users/auditor_access_level_radio', f: f, disabled: editing_current_user
= f.radio_button :access_level, :admin, disabled: editing_current_user = f.radio_button :access_level, :admin, disabled: editing_current_user
= f.label :access_level_admin, class: 'font-weight-bold' do = f.label :access_level_admin, class: 'font-weight-bold' do
Admin = s_('AdminUsers|Admin')
%p.light %p.light
Administrators have access to all groups, projects and users and can manage all features in this installation = s_('AdminUsers|Administrators have access to all groups, projects and users and can manage all features in this installation')
- if editing_current_user - if editing_current_user
%p.light %p.light
You cannot remove your own admin rights. = s_('AdminUsers|You cannot remove your own admin rights.')
.form-group.row .form-group.row
.col-sm-2.col-form-label .col-sm-2.col-form-label.gl-pt-0
= f.label :external = f.label :external
.hidden{ data: user_internal_regex_data } .hidden{ data: user_internal_regex_data }
.col-sm-10 .col-sm-10.gl-display-flex.gl-align-items-baseline
= f.check_box :external do = f.check_box :external do
External = s_('AdminUsers|External')
%p.light %p.light.gl-pl-2
External users cannot see internal or private projects unless access is explicitly granted. Also, external users cannot create projects, groups, or personal snippets. = s_('AdminUsers|External users cannot see internal or private projects unless access is explicitly granted. Also, external users cannot create projects, groups, or personal snippets.')
%row.hidden#warning_external_automatically_set.hidden %row.hidden#warning_external_automatically_set.hidden
.badge.badge-warning.text-white .badge.badge-warning.text-white
= _('Automatically marked as default internal user') = s_('AdminUsers|Automatically marked as default internal user')
---
title: Align "External" access level row in the user admin form
merge_request: 34455
author: Eduardo Sanz @esanzgar
type: fixed
...@@ -1771,15 +1771,24 @@ msgstr "" ...@@ -1771,15 +1771,24 @@ msgstr ""
msgid "AdminUsers|2FA Enabled" msgid "AdminUsers|2FA Enabled"
msgstr "" msgstr ""
msgid "AdminUsers|Access"
msgstr ""
msgid "AdminUsers|Active" msgid "AdminUsers|Active"
msgstr "" msgstr ""
msgid "AdminUsers|Admin" msgid "AdminUsers|Admin"
msgstr "" msgstr ""
msgid "AdminUsers|Administrators have access to all groups, projects and users and can manage all features in this installation"
msgstr ""
msgid "AdminUsers|Admins" msgid "AdminUsers|Admins"
msgstr "" msgstr ""
msgid "AdminUsers|Automatically marked as default internal user"
msgstr ""
msgid "AdminUsers|Block" msgid "AdminUsers|Block"
msgstr "" msgstr ""
...@@ -1828,6 +1837,9 @@ msgstr "" ...@@ -1828,6 +1837,9 @@ msgstr ""
msgid "AdminUsers|External" msgid "AdminUsers|External"
msgstr "" msgstr ""
msgid "AdminUsers|External users cannot see internal or private projects unless access is explicitly granted. Also, external users cannot create projects, groups, or personal snippets."
msgstr ""
msgid "AdminUsers|Is using seat" msgid "AdminUsers|Is using seat"
msgstr "" msgstr ""
...@@ -1852,6 +1864,12 @@ msgstr "" ...@@ -1852,6 +1864,12 @@ msgstr ""
msgid "AdminUsers|Reactivating a user will:" msgid "AdminUsers|Reactivating a user will:"
msgstr "" msgstr ""
msgid "AdminUsers|Regular"
msgstr ""
msgid "AdminUsers|Regular users have access to their groups and projects"
msgstr ""
msgid "AdminUsers|Restore user access to the account, including web, Git and API." msgid "AdminUsers|Restore user access to the account, including web, Git and API."
msgstr "" msgstr ""
...@@ -1906,6 +1924,9 @@ msgstr "" ...@@ -1906,6 +1924,9 @@ msgstr ""
msgid "AdminUsers|You are about to permanently delete the user %{username}. This will delete all of the issues, merge requests, and groups linked to them. To avoid data loss, consider using the %{strong_start}block user%{strong_end} feature instead. Once you %{strong_start}Delete user%{strong_end}, it cannot be undone or recovered." msgid "AdminUsers|You are about to permanently delete the user %{username}. This will delete all of the issues, merge requests, and groups linked to them. To avoid data loss, consider using the %{strong_start}block user%{strong_end} feature instead. Once you %{strong_start}Delete user%{strong_end}, it cannot be undone or recovered."
msgstr "" msgstr ""
msgid "AdminUsers|You cannot remove your own admin rights."
msgstr ""
msgid "Administration" msgid "Administration"
msgstr "" msgstr ""
...@@ -3423,9 +3444,6 @@ msgstr "" ...@@ -3423,9 +3444,6 @@ msgstr ""
msgid "Automatically create merge requests for vulnerabilities that have fixes available." msgid "Automatically create merge requests for vulnerabilities that have fixes available."
msgstr "" msgstr ""
msgid "Automatically marked as default internal user"
msgstr ""
msgid "Automatically resolved" msgid "Automatically resolved"
msgstr "" msgstr ""
......
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