2020-04-24 15:09:37 +00:00
|
|
|
- if any_form_based_providers_enabled?
|
|
|
|
- if crowd_enabled?
|
|
|
|
.login-box.tab-pane{ id: "crowd", role: 'tabpanel', class: active_when(form_based_auth_provider_has_active_class?(:crowd)) }
|
|
|
|
.login-body
|
|
|
|
= render 'devise/sessions/new_crowd'
|
|
|
|
|
|
|
|
= render_if_exists 'devise/sessions/new_kerberos_tab'
|
|
|
|
|
|
|
|
- ldap_servers.each_with_index do |server, i|
|
2020-07-30 18:09:39 +00:00
|
|
|
.login-box.tab-pane{ id: "#{server['provider_name']}", role: 'tabpanel', class: active_when(i == 0 && form_based_auth_provider_has_active_class?(:ldapmain)) }
|
2020-04-24 15:09:37 +00:00
|
|
|
.login-body
|
|
|
|
= render 'devise/sessions/new_ldap', server: server, hide_remember_me: true, submit_message: _('Enter Admin Mode')
|
|
|
|
|
|
|
|
= render_if_exists 'devise/sessions/new_smartcard'
|
|
|
|
|
|
|
|
- if allow_admin_mode_password_authentication_for_web?
|
|
|
|
.login-box.tab-pane{ id: 'login-pane', role: 'tabpanel', class: active_when(!any_form_based_providers_enabled?) }
|
|
|
|
.login-body
|
|
|
|
= render 'admin/sessions/new_base'
|