File: _access.html.haml

package info (click to toggle)
gitlab 17.6.5-19
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 629,368 kB
  • sloc: ruby: 1,915,304; javascript: 557,307; sql: 60,639; xml: 6,509; sh: 4,567; makefile: 1,239; python: 406
file content (50 lines) | stat: -rw-r--r-- 2,736 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
.settings-section
  .settings-sticky-header
    .settings-sticky-header-inner
      %h4.gl-my-0
        = s_('AdminUsers|Access')

  .form-group.gl-form-group{ role: 'group' }
    = f.label :projects_limit, class: 'gl-block col-form-label'
    = f.number_field :projects_limit, min: 0, max: Gitlab::Database::MAX_INT_VALUE, class: 'form-control gl-form-input gl-form-input-sm'

  .form-group.gl-form-group{ role: 'group' }
    - if @user.allow_user_to_create_group_and_project?
      = f.gitlab_ui_checkbox_component :can_create_group, s_('AdminUsers|Can create top level group')
    = f.gitlab_ui_checkbox_component :private_profile, s_('AdminUsers|Private profile')

  %fieldset.form-group.gl-form-group
    %legend.col-form-label.col-form-label
      = s_('AdminUsers|Access level')
    - editing_current_user = (current_user == @user)

    = 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.')

    = render_if_exists 'admin/users/auditor_access_level_radio', f: f, disabled: editing_current_user

    - 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
    = f.gitlab_ui_radio_component :access_level, :admin,
        s_('AdminUsers|Administrator'),
        radio_options: { disabled: editing_current_user },
        help_text: help_text

  .form-group.gl-form-group{ role: 'group' }
    = f.gitlab_ui_checkbox_component :external,
      s_('AdminUsers|External'),
      help_text: 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.')
    .hidden{ data: user_internal_regex_data }
    .gl-flex.gl-items-baseline
      %row.hidden#warning_external_automatically_set
        = gl_badge_tag s_('AdminUsers|Automatically marked as default internal user'), variant: :warning

  .form-group.gl-form-group{ role: 'group' }
    - @user.credit_card_validation || @user.build_credit_card_validation
    = f.fields_for :credit_card_validation do |ff|
      = ff.gitlab_ui_checkbox_component :credit_card_validated_at,
        s_('AdminUsers|Validate user account'),
        help_text: s_('AdminUsers|A user can validate themselves by inputting a credit/debit card, or an admin can manually validate a user. Validated users can use free compute minutes on instance runners.'),
        checkbox_options: { checked: @user.credit_card_validated_at.present? }