27 lines
1.3 KiB
Text
27 lines
1.3 KiB
Text
= 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
|
|
|
|
= f.label :email, "Email (nom@site.com)", id: :user_email_label
|
|
= f.text_field :email, type: :email, autocomplete: 'username', autofocus: true, placeholder: "Votre adresse email", 'aria-describedby': :user_email_label
|
|
|
|
.suspect-email.hidden
|
|
.email-suggestion-title
|
|
Voulez-vous dire
|
|
%span.email-suggestion-address blabla@gmail.com
|
|
?
|
|
.email-suggestion-answer
|
|
= button_tag type: 'button', class: 'button small', onclick: "DS.acceptEmailSuggestion()" do
|
|
Oui
|
|
= button_tag type: 'button', class: 'button small', onclick: "DS.discardEmailSuggestionBox()" do
|
|
Non
|
|
|
|
= f.label :password, "Mot de passe (#{PASSWORD_MIN_LENGTH} caractères minimum)", id: :user_password_label
|
|
= f.password_field :password, autocomplete: 'new-password', value: @user.password, placeholder: "#{PASSWORD_MIN_LENGTH} caractères minimum", 'aria-describedby': :user_password_label
|
|
|
|
= f.submit "Créer un compte", class: "button large primary expand"
|
|
|
|
= render partial: 'shared/france_connect_login', locals: { url: france_connect_particulier_path }
|