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|
|
2021-08-20 10:44:58 +02:00
|
|
|
%h1= t('views.registrations.new.title', name: APPLICATION_NAME)
|
2015-11-27 18:25:31 +01:00
|
|
|
|
2020-07-27 16:35:05 +02:00
|
|
|
= render partial: 'shared/france_connect_login', locals: { url: france_connect_particulier_path }
|
|
|
|
|
2021-08-20 10:44:58 +02:00
|
|
|
= f.label :email, t('views.registrations.new.email_label'), id: :user_email_label
|
|
|
|
= f.text_field :email, type: :email, autocomplete: 'email', autofocus: true, placeholder: t('views.registrations.new.email_placeholder'), '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
|
2021-08-20 10:44:58 +02:00
|
|
|
= t('views.registrations.new.wanna_say')
|
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
|
2021-09-16 21:20:49 +02:00
|
|
|
= t('utils.yes')
|
2019-12-03 12:27:39 +01:00
|
|
|
= button_tag type: 'button', class: 'button small', onclick: "DS.discardEmailSuggestionBox()" do
|
2021-09-16 21:20:49 +02:00
|
|
|
= t('utils.no')
|
2019-11-28 15:34:46 +01:00
|
|
|
|
2021-08-20 10:44:58 +02:00
|
|
|
= f.label :password, t('views.registrations.new.password_label', min_length: PASSWORD_MIN_LENGTH), id: :user_password_label
|
|
|
|
= f.password_field :password, autocomplete: 'new-password', value: @user.password, placeholder: t('views.registrations.new.password_placeholder', min_length: PASSWORD_MIN_LENGTH), 'aria-describedby': :user_password_label
|
2015-11-27 18:25:31 +01:00
|
|
|
|
2021-08-20 10:44:58 +02:00
|
|
|
= f.submit t('views.shared.account.create'), class: "button large primary expand"
|