aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/devise/sessions/new.html.slim
blob: 0ed17e24a7bccb8a669412e12a2417e47ed11b6a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
.page_content#devise
  .container-fluid
    #sessions_new.row
      = render 'devise/shared/intro'

      .col-md-4.login
        .panel.panel-default
          .panel-body
            = simple_form_for(resource, :as => resource_name, :url => session_path(resource_name), html: { :class => 'form-horizontal session_new' } ) do |form|

              = form.input :email, :label => false, input_html: { :class => "form-control" }

              .row
                .col-md-6
                  = form.input :password, :as => :password, :label => false, input_html: { :class => "form-control" }

                .col-md-6
                  = form.button :submit, t("devise.sessions.new.commit"), :class => "btn-primary"

              .row.options
                .col-md-6
                  - if devise_mapping.rememberable?
                    = form.input :remember_me, :as => :boolean if devise_mapping.rememberable?

                .col-md-6.new_password
                  = link_to t("devise.links.new_password"), new_password_path(resource_name)

                  / FIXME ref #819
                  - if false
                    - if devise_mapping.confirmable? && controller_name != 'confirmations'
                      br
                      = link_to t("devise.links.new_confirmation"), new_confirmation_path(resource_name)

        / FIXME ref #819
        - if false
          = render partial: 'devise/shared/form_registration', locals: { organisation: (resource.organisation || Organisation.new) }