debian-mirror-gitlab/app/views/admin/users/_access_levels.html.haml

51 lines
2 KiB
Text
Raw Normal View History

2017-08-17 22:00:37 +05:30
%fieldset
2020-07-28 23:09:34 +05:30
%legend
= s_('AdminUsers|Access')
2018-11-08 19:23:39 +05:30
.form-group.row
2019-09-04 21:01:54 +05:30
.col-sm-2.col-form-label
= f.label :projects_limit
.col-sm-10
2021-03-11 19:13:27 +05:30
= f.number_field :projects_limit, min: 0, max: Gitlab::Database::MAX_INT_VALUE, class: 'form-control gl-form-input'
2017-08-17 22:00:37 +05:30
2018-11-08 19:23:39 +05:30
.form-group.row
2020-07-28 23:09:34 +05:30
.col-sm-2.col-form-label.gl-pt-0
2019-09-04 21:01:54 +05:30
= f.label :can_create_group
.col-sm-10
= f.check_box :can_create_group
2017-08-17 22:00:37 +05:30
2018-11-08 19:23:39 +05:30
.form-group.row
2020-07-28 23:09:34 +05:30
.col-sm-2.col-form-label.gl-pt-0
2019-09-04 21:01:54 +05:30
= f.label :access_level
2017-08-17 22:00:37 +05:30
.col-sm-10
- editing_current_user = (current_user == @user)
= f.radio_button :access_level, :regular, disabled: editing_current_user
2019-10-12 21:52:04 +05:30
= f.label :access_level_regular, class: 'font-weight-bold' do
2020-07-28 23:09:34 +05:30
= s_('AdminUsers|Regular')
2017-08-17 22:00:37 +05:30
%p.light
2020-07-28 23:09:34 +05:30
= s_('AdminUsers|Regular users have access to their groups and projects')
2017-08-17 22:00:37 +05:30
2019-09-04 21:01:54 +05:30
= render_if_exists 'admin/users/auditor_access_level_radio', f: f, disabled: editing_current_user
2017-08-17 22:00:37 +05:30
= f.radio_button :access_level, :admin, disabled: editing_current_user
2019-10-12 21:52:04 +05:30
= f.label :access_level_admin, class: 'font-weight-bold' do
2020-07-28 23:09:34 +05:30
= s_('AdminUsers|Admin')
2017-08-17 22:00:37 +05:30
%p.light
2020-07-28 23:09:34 +05:30
= s_('AdminUsers|Administrators have access to all groups, projects and users and can manage all features in this installation')
2017-08-17 22:00:37 +05:30
- if editing_current_user
%p.light
2020-07-28 23:09:34 +05:30
= s_('AdminUsers|You cannot remove your own admin rights.')
2017-08-17 22:00:37 +05:30
2018-11-08 19:23:39 +05:30
.form-group.row
2020-07-28 23:09:34 +05:30
.col-sm-2.col-form-label.gl-pt-0
2019-09-04 21:01:54 +05:30
= f.label :external
2018-11-20 20:47:30 +05:30
.hidden{ data: user_internal_regex_data }
2020-07-28 23:09:34 +05:30
.col-sm-10.gl-display-flex.gl-align-items-baseline
2017-08-17 22:00:37 +05:30
= f.check_box :external do
2020-07-28 23:09:34 +05:30
= s_('AdminUsers|External')
%p.light.gl-pl-2
= 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.')
2018-11-20 20:47:30 +05:30
%row.hidden#warning_external_automatically_set.hidden
.badge.badge-warning.text-white
2020-07-28 23:09:34 +05:30
= s_('AdminUsers|Automatically marked as default internal user')