2016-11-03 12:29:30 +05:30
|
|
|
- if form_based_providers.any?
|
|
|
|
- if crowd_enabled?
|
2017-08-17 22:00:37 +05:30
|
|
|
.login-box.tab-pane.active{ id: "crowd", role: 'tabpanel' }
|
2016-11-03 12:29:30 +05:30
|
|
|
.login-body
|
|
|
|
= render 'devise/sessions/new_crowd'
|
|
|
|
- @ldap_servers.each_with_index do |server, i|
|
2017-08-17 22:00:37 +05:30
|
|
|
.login-box.tab-pane{ id: "#{server['provider_name']}", role: 'tabpanel', class: active_when(i.zero? && !crowd_enabled?) }
|
2016-11-03 12:29:30 +05:30
|
|
|
.login-body
|
|
|
|
= render 'devise/sessions/new_ldap', server: server
|
|
|
|
- if signin_enabled?
|
2017-08-17 22:00:37 +05:30
|
|
|
.login-box.tab-pane{ id: 'ldap-standard', role: 'tabpanel' }
|
2016-11-03 12:29:30 +05:30
|
|
|
.login-body
|
|
|
|
= render 'devise/sessions/new_base'
|
2015-04-26 12:48:37 +05:30
|
|
|
|
2016-11-03 12:29:30 +05:30
|
|
|
- elsif signin_enabled?
|
2017-08-17 22:00:37 +05:30
|
|
|
.login-box.tab-pane.active{ id: 'login-pane', role: 'tabpanel' }
|
2016-11-03 12:29:30 +05:30
|
|
|
.login-body
|
2015-04-26 12:48:37 +05:30
|
|
|
= render 'devise/sessions/new_base'
|