2017-06-21 17:36:27 +02:00
|
|
|
|
.two-columns.auth
|
2017-06-20 11:42:54 +02:00
|
|
|
|
.columns-container
|
|
|
|
|
.column.preview
|
2018-01-11 19:04:39 +01:00
|
|
|
|
- if !@dossier
|
2017-06-15 18:08:13 +02:00
|
|
|
|
= image_tag "landing/hero/dematerialiser.svg", class: "paperless-logo"
|
|
|
|
|
.baseline.center
|
|
|
|
|
%h3 Un outil simple
|
|
|
|
|
%p
|
|
|
|
|
pour gérer les formulaires
|
|
|
|
|
%br
|
|
|
|
|
administratifs dématérialisés.
|
|
|
|
|
- else
|
|
|
|
|
.text-right
|
|
|
|
|
= link_to "Fermer", users_no_procedure_url, class: "link close-procedure"
|
|
|
|
|
.procedure-logos
|
|
|
|
|
= image_tag @dossier.procedure.decorate.logo_img
|
|
|
|
|
- if @dossier.procedure.euro_flag
|
|
|
|
|
= image_tag "flag_of_europe.svg"
|
|
|
|
|
|
|
|
|
|
%h2.procedure-title
|
|
|
|
|
= @dossier.procedure.libelle
|
2018-03-29 09:49:47 +02:00
|
|
|
|
.procedure-description
|
2018-03-29 10:35:02 +02:00
|
|
|
|
= h simple_format(@dossier.procedure.description)
|
2017-06-15 18:08:13 +02:00
|
|
|
|
|
2017-06-21 17:36:27 +02:00
|
|
|
|
.column.auth-form
|
2018-10-11 10:24:11 +02:00
|
|
|
|
- if resource_name == :user
|
|
|
|
|
%p.register
|
|
|
|
|
%span
|
|
|
|
|
Nouveau sur demarches-simplifiees.fr ?
|
|
|
|
|
= link_to "Créer un compte", new_registration_path(resource_name), class: "button primary auth-signup-button"
|
|
|
|
|
|
|
|
|
|
%hr
|
|
|
|
|
|
2017-06-13 17:46:08 +02:00
|
|
|
|
= form_for @user, url: user_session_path, html: { class: "form" } do |f|
|
2017-06-20 10:09:19 +02:00
|
|
|
|
%h1 Connectez-vous
|
|
|
|
|
|
2017-06-13 17:46:08 +02:00
|
|
|
|
= f.label :email, "Email"
|
2017-07-11 16:16:09 +02:00
|
|
|
|
= f.text_field :email, autofocus: true
|
2015-11-20 17:50:27 +01:00
|
|
|
|
|
2017-06-13 17:46:08 +02:00
|
|
|
|
= f.label :password, "Mot de passe"
|
|
|
|
|
= f.password_field :password, value: @user.password, placeholder: "8 caractères minimum"
|
2017-06-20 14:39:56 +02:00
|
|
|
|
|
|
|
|
|
- if [:user, :gestionnaire].include?(resource_name)
|
|
|
|
|
.reset-password.text-right
|
|
|
|
|
= link_to "Mot de passe oublié ?", new_password_path(resource_name), class: "link"
|
2016-01-11 17:38:16 +01:00
|
|
|
|
|
2017-06-13 17:46:08 +02:00
|
|
|
|
- if devise_mapping.rememberable?
|
|
|
|
|
= f.check_box :remember_me, as: :boolean
|
2017-09-07 18:06:24 +02:00
|
|
|
|
= f.label :remember_me, "Se souvenir de moi", class: 'remember-me'
|
2016-01-29 13:28:32 +01:00
|
|
|
|
|
2017-06-13 17:46:08 +02:00
|
|
|
|
= f.submit "Se connecter", class: "button large primary expand"
|
2017-03-07 10:15:33 +01:00
|
|
|
|
|
2017-06-13 17:46:08 +02:00
|
|
|
|
.separation.center
|
|
|
|
|
ou
|
|
|
|
|
|
|
|
|
|
.center
|
|
|
|
|
= image_tag "login-with-fc-hover.svg", style: "display: none"
|
|
|
|
|
= link_to "", france_connect_particulier_path, class: "login-with-fc"
|
|
|
|
|
|
|
|
|
|
.center
|
2018-06-28 10:09:12 +02:00
|
|
|
|
= link_to "Qu’est-ce que FranceConnect ?", "https://app.franceconnect.gouv.fr/en-savoir-plus", target: "_blank", class: "link"
|