2019-04-01 15:03:13 +02:00
|
|
|
|
= content_for(:page_id, 'auth')
|
|
|
|
|
|
2019-01-08 08:20:49 +01:00
|
|
|
|
.auth-form.sign-in-form
|
|
|
|
|
- if resource_name == :user
|
|
|
|
|
%p.register
|
|
|
|
|
%span
|
2019-04-29 17:55:59 +02:00
|
|
|
|
Nouveau sur demarches‑simplifiees.fr ?
|
2019-01-08 08:20:49 +01:00
|
|
|
|
= link_to "Créer un compte", new_registration_path(resource_name), class: "button primary auth-signup-button"
|
2017-06-15 18:08:13 +02:00
|
|
|
|
|
2019-01-08 08:20:49 +01:00
|
|
|
|
%hr
|
2018-10-11 10:24:11 +02:00
|
|
|
|
|
2019-01-08 08:20:49 +01:00
|
|
|
|
= form_for @user, url: user_session_path, html: { class: "form" } do |f|
|
|
|
|
|
%h1 Connectez-vous
|
2018-10-11 10:24:11 +02:00
|
|
|
|
|
2019-01-08 08:20:49 +01:00
|
|
|
|
= f.label :email, "Email"
|
|
|
|
|
= f.text_field :email, autofocus: true
|
2017-06-20 10:09:19 +02:00
|
|
|
|
|
2019-01-08 08:20:49 +01:00
|
|
|
|
= f.label :password, "Mot de passe"
|
|
|
|
|
= f.password_field :password, value: @user.password, placeholder: "8 caractères minimum"
|
2015-11-20 17:50:27 +01:00
|
|
|
|
|
2019-01-08 08:20:49 +01:00
|
|
|
|
.auth-options
|
|
|
|
|
- if devise_mapping.rememberable?
|
|
|
|
|
%div
|
|
|
|
|
= f.check_box :remember_me, as: :boolean
|
|
|
|
|
= f.label :remember_me, "Se souvenir de moi", class: 'remember-me'
|
2017-06-20 14:39:56 +02:00
|
|
|
|
|
2019-08-06 11:02:54 +02:00
|
|
|
|
- if [:user, :instructeur].include?(resource_name)
|
2019-01-08 08:20:49 +01:00
|
|
|
|
.text-right
|
|
|
|
|
= link_to "Mot de passe oublié ?", new_password_path(resource_name), class: "link"
|
2016-01-29 13:28:32 +01:00
|
|
|
|
|
2019-01-08 08:20:49 +01:00
|
|
|
|
= f.submit "Se connecter", class: "button large primary expand"
|
2017-03-07 10:15:33 +01:00
|
|
|
|
|
2019-04-02 15:03:26 +02:00
|
|
|
|
= render partial: 'shared/france_connect_login', locals: { url: france_connect_particulier_path }
|