2020-04-24 11:09:37 -04:00
|
|
|
- show_password_form = local_assigns.fetch(:show_password_form, password_authentication_enabled_for_web?)
|
|
|
|
- render_signup_link = local_assigns.fetch(:render_signup_link, true)
|
|
|
|
|
2019-10-31 20:06:02 -04:00
|
|
|
%ul.nav-links.new-session-tabs.nav-tabs.nav{ class: ('custom-provider-tabs' if any_form_based_providers_enabled?) }
|
2016-09-09 08:21:00 -04:00
|
|
|
- if crowd_enabled?
|
2018-05-24 22:32:40 -04:00
|
|
|
%li.nav-item
|
2021-04-16 14:09:14 -04:00
|
|
|
= link_to _("Crowd"), "#crowd", class: "nav-link #{active_when(form_based_auth_provider_has_active_class?(:crowd))}", 'data-toggle' => 'tab', role: 'tab'
|
2019-05-10 17:07:00 -04:00
|
|
|
= render_if_exists "devise/shared/kerberos_tab"
|
2020-04-24 11:09:37 -04:00
|
|
|
- ldap_servers.each_with_index do |server, i|
|
2018-06-21 11:53:32 -04:00
|
|
|
%li.nav-item
|
2020-10-28 08:08:40 -04:00
|
|
|
= link_to server['label'], "##{server['provider_name']}", class: "nav-link #{active_when(i == 0 && form_based_auth_provider_has_active_class?(:ldapmain))}", data: { toggle: 'tab', qa_selector: 'ldap_tab' }, role: 'tab'
|
2018-11-12 16:40:42 -05:00
|
|
|
|
|
|
|
= render_if_exists 'devise/shared/tab_smartcard'
|
|
|
|
|
2020-04-24 11:09:37 -04:00
|
|
|
- if show_password_form
|
2018-05-24 22:32:40 -04:00
|
|
|
%li.nav-item
|
2020-10-28 08:08:40 -04:00
|
|
|
= link_to _('Standard'), '#login-pane', class: 'nav-link', data: { toggle: 'tab', qa_selector: 'standard_tab' }, role: 'tab'
|
2020-04-24 11:09:37 -04:00
|
|
|
- if render_signup_link && allow_signup?
|
2018-05-24 22:32:40 -04:00
|
|
|
%li.nav-item
|
2021-04-16 14:09:14 -04:00
|
|
|
= link_to _('Register'), '#register-pane', class: 'nav-link', data: { toggle: 'tab', qa_selector: 'register_tab' }, role: 'tab'
|