2019-04-01 15:03:13 +02:00
|
|
|
= content_for(:page_id, 'auth')
|
2024-09-19 10:37:30 +02:00
|
|
|
= content_for(:title, t('metas.signup.title'))
|
2019-04-01 15:03:13 +02:00
|
|
|
|
2019-01-08 14:23:48 +01:00
|
|
|
.auth-form
|
|
|
|
= devise_error_messages!
|
2022-12-20 17:51:36 +01:00
|
|
|
= form_for resource, url: user_registration_path, html: { class: "fr-py-5w" } do |f|
|
|
|
|
|
2024-03-20 11:34:54 +01:00
|
|
|
%h1.fr-h2= t('views.registrations.new.title', name: Current.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 }
|
|
|
|
|
2022-12-20 17:51:36 +01:00
|
|
|
%fieldset.fr-mb-0.fr-fieldset{ aria: { labelledby: 'create-account-legend' } }
|
|
|
|
%legend.fr-fieldset__legend#create-account-legend
|
|
|
|
%h2.fr-h6= I18n.t('views.registrations.new.subtitle')
|
|
|
|
|
|
|
|
.fr-fieldset__element
|
2024-08-09 15:04:14 +02:00
|
|
|
%p.fr-text--sm= t('utils.asterisk_html')
|
2019-12-03 09:37:29 +01:00
|
|
|
|
2022-12-20 17:51:36 +01:00
|
|
|
.fr-fieldset__element= render Dsfr::InputComponent.new(form: f, attribute: :email, input_type: :email_field, opts: { autocomplete: 'email', autofocus: true })
|
2019-11-28 15:34:46 +01:00
|
|
|
|
2022-12-20 17:51:36 +01:00
|
|
|
.fr-fieldset__element
|
2024-09-03 16:59:53 +02:00
|
|
|
= render Dsfr::InputComponent.new(form: f, attribute: :password, input_type: :password_field,
|
2024-09-19 11:31:06 +02:00
|
|
|
opts: { autofocus: 'true', autocomplete: 'new-password', data: { controller: 'turbo-input', turbo_input_url_value: show_password_complexity_path, email_input_target: 'next'}, aria: {describedby: 'password_hint'}})
|
2015-11-27 18:25:31 +01:00
|
|
|
|
2024-09-03 16:59:53 +02:00
|
|
|
#password_complexity
|
|
|
|
= render PasswordComplexityComponent.new
|
|
|
|
|
2024-09-19 11:32:26 +02:00
|
|
|
.fr-btns-group
|
|
|
|
= f.submit t('views.shared.account.create'), id: 'submit-password', disabled: :disabled, class: "fr-btn fr-mt-2w", data: { disable_with: t('views.users.passwords.edit.submit_loading') }
|