summaryrefslogtreecommitdiff
path: root/app/views/admin/sessions/new.html.haml
blob: 0a7f20b861e4a75738aa04e350bc052662e952fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
- @hide_breadcrumbs = true
- page_title _('Enter Admin Mode')

.row.justify-content-center
  .col-md-5.new-session-forms-container
    .login-page
      #signin-container
        = render 'admin/sessions/tabs_normal', tab_title: _('Enter Admin Mode')
        .tab-content
          - if !current_user.require_password_creation_for_web?
            .login-box.tab-pane.active{ id: 'login-pane', role: 'tabpanel' }
              .login-body
                = render 'admin/sessions/new_base'

          - if omniauth_enabled? && button_based_providers_enabled?
            .clearfix
              = render 'devise/shared/omniauth_box', hide_remember_me: true

          -# Show a message if none of the mechanisms above are enabled
          - if current_user.require_password_creation_for_web? && !omniauth_enabled?
            .prepend-top-default.center
              = _('No authentication methods configured.')