Merge pull request #5418 from betagouv/mise-en-avant-france-connect

#5428 - France connect avant les boutons de login/signup
This commit is contained in:
Keirua 2020-07-30 10:32:12 +02:00 committed by GitHub
commit b3e98048f9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 54 additions and 11 deletions

View file

@ -5,6 +5,8 @@
= form_for resource, url: user_registration_path, html: { class: "form" } do |f|
%h1 Créez-vous un compte #{APPLICATION_NAME}
= render partial: 'shared/france_connect_login', locals: { url: france_connect_particulier_path }
= f.label :email, "Email (nom@site.com)", id: :user_email_label
= f.text_field :email, type: :email, autocomplete: 'email', autofocus: true, placeholder: "Votre adresse email", 'aria-describedby': :user_email_label
@ -24,4 +26,4 @@
= f.submit "Créer un compte", class: "button large primary expand"
= render partial: 'shared/france_connect_login', locals: { url: france_connect_particulier_path }

View file

@ -5,6 +5,8 @@
= form_for User.new, url: user_session_path, html: { class: "form" } do |f|
%h1.huge-title Connectez-vous
= render partial: 'shared/france_connect_login', locals: { url: france_connect_particulier_path }
= f.label :email, "Email (nom@site.com)"
= f.text_field :email, type: :email, autocomplete: 'username', autofocus: true
@ -21,8 +23,6 @@
= f.submit "Se connecter", class: "button large primary expand"
= render partial: 'shared/france_connect_login', locals: { url: france_connect_particulier_path }
%hr
%p.center
%span Vous êtes nouveau sur demarches‑simplifiees.fr ?