Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_group_admin_settings.html.haml « groups « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 785ca71b3715b88866b6f99ab30c009d3ee177dd (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
.form-group.row
  .col-sm-2.col-form-label.pt-0
    = f.label :lfs_enabled, _('Large File Storage')
  .col-sm-10
    - label = _('Allow projects within this group to use Git LFS')
    - help_link = link_to sprite_icon('question-o'), help_page_path('topics/git/lfs/index'), class: 'gl-ml-2'
    = f.gitlab_ui_checkbox_component :lfs_enabled,
      '%{label}%{help_link}'.html_safe % { label: label, help_link: help_link },
      help_text: _('This setting can be overridden in each project.'),
      checkbox_options: { checked: @group.lfs_enabled? }
.form-group.row
  .col-sm-2.col-form-label
    = f.label s_('ProjectCreationLevel|Allowed to create projects')
  .col-sm-10
    = f.select :project_creation_level, options_for_select(::Gitlab::Access.project_creation_options, @group.project_creation_level), {}, class: 'form-control'

.form-group.row
  .col-sm-2.col-form-label
    = f.label s_('SubgroupCreationlevel|Allowed to create subgroups')
  .col-sm-10
    = f.select :subgroup_creation_level, options_for_select(::Gitlab::Access.subgroup_creation_options, @group.subgroup_creation_level), {}, class: 'form-control'

.form-group.row
  .col-sm-2.col-form-label.pt-0
    = f.label :require_two_factor_authentication, _('Two-factor authentication')
  .col-sm-10
    - label = _("Require all users in this group to set up two-factor authentication")
    - help_link = link_to sprite_icon('question-o'), help_page_path('security/two_factor_authentication', anchor: 'enforce-2fa-for-all-users-in-a-group'), class: 'gl-ml-2'
    = f.gitlab_ui_checkbox_component :require_two_factor_authentication, '%{label}%{help_link}'.html_safe % { label: label, help_link: help_link }
.form-group.row
  .offset-sm-2.col-sm-10
    .form-check
      = f.text_field :two_factor_grace_period, class: 'form-control'
      .form-text.text-muted= _("Time (in hours) that users are allowed to skip forced configuration of two-factor authentication.")