summaryrefslogtreecommitdiff
path: root/app/views/admin/users/_access_levels.html.haml
blob: 0ace0b28a4b113fdf28c2e775cc88f883060d440 (plain)
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
%fieldset
  %legend Access
  .form-group.row
    = f.label :projects_limit, class: 'col-form-label col-sm-2'
    .col-sm-10= f.number_field :projects_limit, min: 0, max: Gitlab::Database::MAX_INT_VALUE, class: 'form-control'

  .form-group.row
    = f.label :can_create_group, class: 'col-form-label col-sm-2'
    .col-sm-10= f.check_box :can_create_group

  .form-group.row
    = f.label :access_level, class: 'col-form-label col-sm-2'
    .col-sm-10
      - editing_current_user = (current_user == @user)

      = f.radio_button :access_level, :regular, disabled: editing_current_user
      = label_tag :regular do
        Regular
      %p.light
        Regular users have access to their groups and projects

      = f.radio_button :access_level, :admin, disabled: editing_current_user
      = label_tag :admin do
        Admin
      %p.light
        Administrators have access to all groups, projects and users and can manage all features in this installation
      - if editing_current_user
        %p.light
          You cannot remove your own admin rights.

  .form-group.row
    = f.label :external, class: 'col-form-label col-sm-2'
    .col-sm-10
      = f.check_box :external do
        External
      %p.light
        External users cannot see internal or private projects unless access is explicitly granted. Also, external users cannot create projects or groups.