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

28 lines
1 KiB
Text
Raw Normal View History

= content_for(:page_id, 'auth')
.auth-form
= devise_error_messages!
= form_for resource, url: user_registration_path, html: { class: "form" } do |f|
%h1 Créez-vous un compte demarches-simplifiees.fr
2015-11-27 18:25:31 +01:00
= f.label :email, "Email"
= f.text_field :email, autofocus: true, placeholder: "Votre adresse email"
.suspect-email.hidden
2019-12-03 10:04:54 +01:00
.email-suggestion-title
2019-12-03 12:27:39 +01:00
Voulez-vous dire
2019-12-03 10:04:54 +01:00
%span.email-suggestion-address blabla@gmail.com
 ?
.email-suggestion-answer
2019-12-03 12:27:39 +01:00
= button_tag type: 'button', class: 'button small', onclick: "DS.acceptEmailSuggestion()" do
Oui
2019-12-03 12:27:39 +01:00
= button_tag type: 'button', class: 'button small', onclick: "DS.discardEmailSuggestionBox()" do
Non
= f.label :password, "Mot de passe"
= f.password_field :password, value: @user.password, placeholder: "8 caractères minimum"
2015-11-27 18:25:31 +01:00
= f.submit "Créer un compte", class: "button large primary expand"
2017-06-21 14:20:22 +02:00
= render partial: 'shared/france_connect_login', locals: { url: france_connect_particulier_path }