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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

53 lines
2.5 KiB
Text
Raw Normal View History

2017-08-17 22:00:37 +05:30
%fieldset
2022-07-23 23:45:48 +05:30
%legend.gl-border-bottom-0
2020-07-28 23:09:34 +05:30
= s_('AdminUsers|Access')
2018-11-08 19:23:39 +05:30
.form-group.row
2022-07-23 23:45:48 +05:30
.col-12
2019-09-04 21:01:54 +05:30
= f.label :projects_limit
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
2022-07-23 23:45:48 +05:30
.col-12.gl-pt-0
2019-09-04 21:01:54 +05:30
= f.label :can_create_group
2022-06-21 17:19:12 +05:30
= f.gitlab_ui_checkbox_component :can_create_group, ''
2017-08-17 22:00:37 +05:30
2018-11-08 19:23:39 +05:30
.form-group.row
2022-07-23 23:45:48 +05:30
.col-12.gl-pt-0
2019-09-04 21:01:54 +05:30
= f.label :access_level
2017-08-17 22:00:37 +05:30
- editing_current_user = (current_user == @user)
2021-11-18 22:05:49 +05:30
= f.gitlab_ui_radio_component :access_level, :regular,
s_('AdminUsers|Regular'),
radio_options: { disabled: editing_current_user },
help_text: 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
2022-04-04 11:22:00 +05:30
- help_text = s_('AdminUsers|The user has unlimited access to all groups, projects, users, and features.')
- help_text += ' ' + s_('AdminUsers|You cannot remove your own administrator access.') if editing_current_user
2021-11-18 22:05:49 +05:30
= f.gitlab_ui_radio_component :access_level, :admin,
2022-04-04 11:22:00 +05:30
s_('AdminUsers|Administrator'),
2021-11-18 22:05:49 +05:30
radio_options: { disabled: editing_current_user },
help_text: help_text
2017-08-17 22:00:37 +05:30
2018-11-08 19:23:39 +05:30
.form-group.row
2022-07-23 23:45:48 +05:30
.col-12.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 }
2022-07-23 23:45:48 +05:30
.col-12.gl-display-flex.gl-align-items-baseline
2022-06-21 17:19:12 +05:30
= f.gitlab_ui_checkbox_component :external, 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.')
2022-01-26 12:08:38 +05:30
%row.hidden#warning_external_automatically_set
= gl_badge_tag s_('AdminUsers|Automatically marked as default internal user'), variant: :warning
2021-09-04 01:27:46 +05:30
.form-group.row
- @user.credit_card_validation || @user.build_credit_card_validation
= f.fields_for :credit_card_validation do |ff|
2022-07-23 23:45:48 +05:30
.col-12.gl-pt-0
2022-06-21 17:19:12 +05:30
= ff.label s_('AdminUsers|Validate user account')
2022-07-23 23:45:48 +05:30
.col-12.gl-display-flex.gl-align-items-baseline
2022-06-21 17:19:12 +05:30
= ff.gitlab_ui_checkbox_component :credit_card_validated_at,
s_('AdminUsers|User is validated and can use free CI minutes on shared runners.'),
help_text: s_('AdminUsers|A user can validate themselves by inputting a credit/debit card, or an admin can manually validate a user.'),
checkbox_options: { checked: @user.credit_card_validated_at.present? }