Commit 26b971c2 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch...

Merge branch '336693-Migrate-prevent-forking-checkbox-to-gitlab_ui_checkbox_component' into 'master'

Migrate prevent forking checkbox to gitlab_ui_checkbox_component

See merge request gitlab-org/gitlab!66701
parents 0711747a 297b0444
%h5= _('Prevent project forking outside current group') %h5= _('Prevent project forking outside current group')
.form-group.gl-mb-3 .form-group.gl-mb-3
.gl-form-checkbox.custom-control.custom-checkbox = f.gitlab_ui_checkbox_component :prevent_forking_outside_group,
= 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' } s_('GroupSettings|Prevent forking outside of the group'),
= f.label :prevent_forking_outside_group, class: 'custom-control-label' do checkbox_options: { disabled: !can_change_prevent_forking?(current_user, group), data: { qa_selector: 'prevent_forking_outside_group_checkbox' }, checked: group.prevent_forking_outside_group? },
= s_('GroupSettings|Prevent forking outside of the group') help_text: s_('GroupSettings|This setting will prevent group members from forking projects outside of the group.')
%p.help-text= s_('GroupSettings|This setting will prevent group members from forking projects outside of the group.')
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment