Commit bdef51ee authored by Illya Klymov's avatar Illya Klymov

Merge branch '358307-migrate-checkbox' into 'master'

Migrate checkbox to be GitLab UI component

See merge request gitlab-org/gitlab!84827
parents 20bd4c51 c53b3800
= form_for @application_setting, url: repository_admin_application_settings_path(anchor: 'js-mirror-settings') do |f|
= gitlab_ui_form_for @application_setting, url: repository_admin_application_settings_path(anchor: 'js-mirror-settings') do |f|
= form_errors(@application_setting)
%fieldset
.form-group
= f.label :mirror_available, _('Repository mirroring configuration'), class: 'label-bold'
.form-check
= f.check_box :mirror_available, class: 'form-check-input'
= f.label :mirror_available, class: 'form-check-label' do
= _('Allow project maintainers to configure repository mirroring')
%span.form-text.text-muted
= _('If disabled, only administrators can configure repository mirroring.')
= f.gitlab_ui_checkbox_component :mirror_available, _('Allow project maintainers to configure repository mirroring'),
help_text: _('If disabled, only administrators can configure repository mirroring.')
= render_if_exists 'admin/application_settings/mirror_settings', form: f
......
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