Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
077aa0bf
Commit
077aa0bf
authored
Jul 27, 2021
by
Kev
Committed by
Jacques Erasmus
Jul 27, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate group 2FA checkboxes to gitlab_ui_checkbox_component
parent
25f75cc2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
app/views/groups/settings/_two_factor_auth.html.haml
app/views/groups/settings/_two_factor_auth.html.haml
+6
-8
No files found.
app/views/groups/settings/_two_factor_auth.html.haml
View file @
077aa0bf
...
...
@@ -7,17 +7,15 @@
%p
=
s_
(
'Check the %{docs_link_start}documentation%{docs_link_end}.'
).
html_safe
%
{
docs_link_start:
docs_link_start
,
docs_link_end:
'</a>'
.
html_safe
}
.form-group
.gl-form-checkbox.custom-control.custom-checkbox
=
f
.
check_box
:require_two_factor_authentication
,
class:
'custom-control-input'
,
data:
{
qa_selector:
'require_2fa_checkbox'
}
=
f
.
label
:require_two_factor_authentication
,
class:
'custom-control-label'
do
=
_
(
'Require all users in this group to setup two-factor authentication'
)
=
f
.
gitlab_ui_checkbox_component
:require_two_factor_authentication
,
_
(
'Require all users in this group to setup two-factor authentication'
),
checkbox_options:
{
data:
{
qa_selector:
'require_2fa_checkbox'
}
}
.form-group
=
f
.
label
:two_factor_grace_period
,
_
(
'Time before enforced'
),
class:
'label-bold'
=
f
.
text_field
:two_factor_grace_period
,
class:
'form-control form-control-sm w-auto'
.form-text.text-muted
=
_
(
'Amount of time (in hours) that users are allowed to skip forced configuration of two-factor authentication'
)
-
unless
group
.
has_parent?
.form-group
.gl-form-checkbox.custom-control.custom-checkbox
=
f
.
check_box
:allow_mfa_for_subgroups
,
class:
'custom-control-input'
,
checked:
group
.
namespace_settings
&
.
allow_mfa_for_subgroups
=
f
.
label
:allow_mfa_for_subgroups
,
class:
'custom-control-label'
do
=
_
(
'Allow subgroups to set up their own two-factor authentication rules'
)
=
f
.
gitlab_ui_checkbox_component
:allow_mfa_for_subgroups
,
_
(
'Allow subgroups to set up their own two-factor authentication rules'
),
checkbox_options:
{
checked:
group
.
namespace_settings
&
.
allow_mfa_for_subgroups
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment