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