Commit 8426d66c authored by Daniel Tian's avatar Daniel Tian

Use Pajamas checkbox for ldap_access_setting.html.haml

Changelog: changed
MR:
EE: true
parent 9474ea6d
......@@ -5,18 +5,14 @@
.form-group
= form.label :allow_group_owners_to_manage_ldap, _('LDAP settings'), class: 'label-bold'
.form-check
= form.check_box :lock_memberships_to_ldap, class: 'form-check-input'
= form.label :lock_memberships_to_ldap, class: 'form-check-label' do
= _('Lock memberships to LDAP synchronization')
%span.form-text.text-muted
= _('If checked, new group memberships and permissions can only be added via LDAP synchronization')
= link_to sprite_icon('question-o'), help_page_path('administration/auth/ldap/ldap_synchronization.md', anchor: 'global-group-memberships-lock')
- help_text_lock = _('If checked, new group memberships and permissions can only be added via LDAP synchronization')
- help_link_lock = link_to sprite_icon('question-o'), help_page_path('administration/auth/ldap/ldap_synchronization.md', anchor: 'global-group-memberships-lock')
= form.gitlab_ui_checkbox_component :lock_memberships_to_ldap,
_('Lock memberships to LDAP synchronization'),
help_text: '%{help_text} %{help_link}'.html_safe % { help_text: help_text_lock, help_link: help_link_lock }
.form-check
= form.check_box :allow_group_owners_to_manage_ldap, class: 'form-check-input'
= form.label :allow_group_owners_to_manage_ldap, class: 'form-check-label' do
= _('Allow group owners to manage LDAP-related settings')
%span.form-text.text-muted
= _('If checked, group owners can manage LDAP group links and LDAP member overrides')
= link_to sprite_icon('question-o'), help_page_path('administration/auth/ldap/index.md')
- help_text_group = _('If checked, group owners can manage LDAP group links and LDAP member overrides')
- help_link_group = link_to sprite_icon('question-o'), help_page_path('administration/auth/ldap/index.md')
= form.gitlab_ui_checkbox_component :allow_group_owners_to_manage_ldap,
_('Allow group owners to manage LDAP-related settings'),
help_text: '%{help_text} %{help_link}'.html_safe % { help_text: help_text_group, help_link: help_link_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