2019-04-01 15:03:13 +02:00
|
|
|
= content_for(:page_id, 'auth')
|
|
|
|
|
2019-01-08 14:23:48 +01:00
|
|
|
.auth-form
|
|
|
|
= devise_error_messages!
|
|
|
|
= form_for resource, url: user_registration_path, html: { class: "form" } do |f|
|
2020-07-22 10:32:20 +02:00
|
|
|
%h1 Créez-vous un compte #{APPLICATION_NAME}
|
2015-11-27 18:25:31 +01:00
|
|
|
|
2020-06-10 11:16:46 +02:00
|
|
|
= f.label :email, "Email (nom@site.com)", id: :user_email_label
|
2020-06-15 15:17:40 +02:00
|
|
|
= f.text_field :email, type: :email, autocomplete: 'email', autofocus: true, placeholder: "Votre adresse email", 'aria-describedby': :user_email_label
|
2019-12-03 09:37:29 +01:00
|
|
|
|
2019-12-19 17:45:14 +01:00
|
|
|
.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
|
2019-12-02 13:07:40 +01:00
|
|
|
Oui
|
2019-12-03 12:27:39 +01:00
|
|
|
= button_tag type: 'button', class: 'button small', onclick: "DS.discardEmailSuggestionBox()" do
|
2019-12-02 13:07:40 +01:00
|
|
|
Non
|
2019-11-28 15:34:46 +01:00
|
|
|
|
2020-06-10 11:16:46 +02:00
|
|
|
= 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
|
2015-11-27 18:25:31 +01:00
|
|
|
|
2019-01-08 14:23:48 +01:00
|
|
|
= f.submit "Créer un compte", class: "button large primary expand"
|
2017-06-21 14:20:22 +02:00
|
|
|
|
2019-04-02 15:03:26 +02:00
|
|
|
= render partial: 'shared/france_connect_login', locals: { url: france_connect_particulier_path }
|