564050ec0f
LFS can be enabled and disabled per project using the API by Masters and Owners, but the UI is only available to Admins. The interface and API should be consistent. LFS can also be enabled and disabled per group using the API by Owners, but the UI is only available to Admins. This interface should also be consistent. Additionally removes an unneeded check if 2FA interface, since the interface is only available to Owners. Closes #33320
26 lines
1.2 KiB
Text
26 lines
1.2 KiB
Text
.form-group
|
|
= f.label :lfs_enabled, 'Large File Storage', class: 'control-label'
|
|
.col-sm-10
|
|
.checkbox
|
|
= f.label :lfs_enabled do
|
|
= f.check_box :lfs_enabled, checked: @group.lfs_enabled?
|
|
%strong
|
|
Allow projects within this group to use Git LFS
|
|
= link_to icon('question-circle'), help_page_path('workflow/lfs/manage_large_binaries_with_git_lfs')
|
|
%br/
|
|
%span.descr This setting can be overridden in each project.
|
|
|
|
.form-group
|
|
= f.label :require_two_factor_authentication, 'Two-factor authentication', class: 'control-label col-sm-2'
|
|
.col-sm-10
|
|
.checkbox
|
|
= f.label :require_two_factor_authentication do
|
|
= f.check_box :require_two_factor_authentication
|
|
%strong
|
|
Require all users in this group to setup Two-factor authentication
|
|
= link_to icon('question-circle'), help_page_path('security/two_factor_authentication', anchor: 'enforcing-2fa-for-all-users-in-a-group')
|
|
.form-group
|
|
.col-sm-offset-2.col-sm-10
|
|
.checkbox
|
|
= f.text_field :two_factor_grace_period, class: 'form-control'
|
|
.help-block Amount of time (in hours) that users are allowed to skip forced configuration of two-factor authentication
|