demarches-normaliennes/app/views/users/sessions/new.html.haml
2015-10-06 18:33:01 +02:00

30 lines
966 B
Text

#div{style:'text-align:center'}
%h2#login_user Connexion
%br
%div#form_login.row
%div.col-md-6.col-lg-6
= form_for(resource, as: resource_name, url: session_path(resource_name)) do |f|
%h4
= f.label :email
= f.email_field :email, autofocus: true, class: 'form-control'
%br
%h4
= f.label :password
= f.password_field :password, autocomplete: "off", class: 'form-control'
%br
/ - if devise_mapping.rememberable?
/ .field
/ = f.check_box :remember_me
/ = f.label :remember_me
.actions
= f.submit "Se connecter", class:'btn btn-primary btn-lg'
%br
= render "users/shared/links"
%div.col-md-6.col-lg-6.border-left
%img#logo_fc{src: '/assets/logo_FC_03.png', style:'max-height:180px'}
%br
%button.btn.btn-info.btn-lg
= link_to "Se connecter", '/france_connect', id: 'france_connect', style:'color:white; text-decoration: none'