demarches-normaliennes/app/views/users/sessions/new.html.haml

31 lines
958 B
Text
Raw Normal View History

= content_for(:page_id, 'auth')
.auth-form.sign-in-form
2019-08-16 16:12:00 +02:00
%p.register
%span
Nouveau sur demarches‑simplifiees.fr ?
= link_to "Créer un compte", new_user_registration_path, class: "button primary auth-signup-button"
2017-06-15 18:08:13 +02:00
2019-08-16 16:12:00 +02:00
%hr
2019-08-16 16:22:19 +02:00
= form_for User.new, url: user_session_path, html: { class: "form" } do |f|
%h1 Connectez-vous
= f.label :email, "Email"
= f.text_field :email, autofocus: true
2017-06-20 10:09:19 +02:00
= f.label :password, "Mot de passe"
2019-08-16 16:22:19 +02:00
= f.password_field :password, placeholder: "8 caractères minimum"
2015-11-20 17:50:27 +01:00
.auth-options
2019-08-16 16:12:00 +02:00
%div
= f.check_box :remember_me, as: :boolean
= f.label :remember_me, "Se souvenir de moi", class: 'remember-me'
.text-right
= link_to "Mot de passe oublié ?", new_user_password_path, class: "link"
= f.submit "Se connecter", class: "button large primary expand"
2017-03-07 10:15:33 +01:00
= render partial: 'shared/france_connect_login', locals: { url: france_connect_particulier_path }