Commit c24915f8 authored by Olena Horal-Koretska's avatar Olena Horal-Koretska

Merge branch...

Merge branch '336692-Migrate-allow-request-access-checkbox-to-gitlab_ui_checkbox_component' into 'master'

Migrate allow request access checkbox to gitlab_ui_checkbox_component

See merge request gitlab-org/gitlab!66700
parents 0dccae5c 9bbfc5e4
= form_for [:admin, @group] do |f|
= gitlab_ui_form_for [:admin, @group] do |f|
= form_errors(@group)
= render 'shared/group_form', f: f
= render 'shared/group_form_description', f: f
......
- label_class = local_assigns.fetch(:bold_label, false) ? 'font-weight-bold' : ''
.gl-form-checkbox.custom-control.custom-checkbox
= form.check_box :request_access_enabled, class: 'custom-control-input', data: { qa_selector: 'request_access_checkbox' }
= form.label :request_access_enabled, class: 'custom-control-label' do
%span{ class: label_class }= _('Allow users to request access (if visibility is public or internal)')
= form.gitlab_ui_checkbox_component :request_access_enabled,
_('Allow users to request access (if visibility is public or internal)'),
label_options: { class: label_class },
checkbox_options: { data: { qa_selector: 'request_access_checkbox' } }
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