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
297b0444
Commit
297b0444
authored
Jul 23, 2021
by
Kev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate prevent forking checkbox to gitlab_ui_checkbox_component
parent
26720aaf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
ee/app/views/groups/settings/_prevent_forking.html.haml
ee/app/views/groups/settings/_prevent_forking.html.haml
+4
-5
No files found.
ee/app/views/groups/settings/_prevent_forking.html.haml
View file @
297b0444
%h5
=
_
(
'Prevent project forking outside current group'
)
.form-group.gl-mb-3
.gl-form-checkbox.custom-control.custom-checkbox
=
f
.
check_box
:prevent_forking_outside_group
,
checked:
group
.
prevent_forking_outside_group?
,
class:
'custom-control-input'
,
disabled:
!
can_change_prevent_forking?
(
current_user
,
group
),
data:
{
qa_selector:
'prevent_forking_outside_group_checkbox'
}
=
f
.
label
:prevent_forking_outside_group
,
class:
'custom-control-label'
do
=
s_
(
'GroupSettings|Prevent forking outside of the group'
)
%p
.help-text
=
s_
(
'GroupSettings|This setting will prevent group members from forking projects outside of the group.'
)
=
f
.
gitlab_ui_checkbox_component
:prevent_forking_outside_group
,
s_
(
'GroupSettings|Prevent forking outside of the group'
),
checkbox_options:
{
disabled:
!
can_change_prevent_forking?
(
current_user
,
group
),
data:
{
qa_selector:
'prevent_forking_outside_group_checkbox'
},
checked:
group
.
prevent_forking_outside_group?
},
help_text:
s_
(
'GroupSettings|This setting will prevent group members from forking projects outside of the group.'
)
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