demarches-normaliennes/app/views/experts/avis/sign_up.html.haml

23 lines
1.3 KiB
Text
Raw Normal View History

2024-09-03 17:36:10 +02:00
.fr-container.fr-my-5w
.fr-grid-row.fr-grid-row--center
.fr-col-lg-6
2024-02-16 14:21:47 +01:00
= form_for(User.new(email: @email), url: sign_up_expert_avis_path(email: @email), method: :post, html: { class: "fr-py-5w" }) do |f|
2024-09-03 17:36:10 +02:00
%h1.fr-h2
= t('views.registrations.new.title', name: Current.application_name)
2024-02-16 14:21:47 +01:00
%fieldset.fr-mb-0.fr-fieldset{ aria: { labelledby: 'create-account-legend' } }
.fr-fieldset__element
%p.fr-text--sm= t('utils.mandatory_champs')
2021-02-25 10:05:19 +01:00
2024-02-16 14:21:47 +01:00
.fr-fieldset__element
2024-09-03 17:36:10 +02:00
= render Dsfr::InputComponent.new(form: f, attribute: :email, input_type: :email_field, opts: { disabled: true, autocomplete: 'email' })
.fr-fieldset__element
= render Dsfr::InputComponent.new(form: f, attribute: :password, input_type: :password_field,
opts: { autofocus: 'true', autocomplete: 'new-password', data: { controller: 'turbo-input', turbo_input_url_value: show_password_complexity_path }, aria: {describedby: 'password_hint'}})
2024-09-03 17:36:10 +02:00
#password_complexity
= render PasswordComplexityComponent.new
2021-02-25 10:05:19 +01:00
2024-09-09 17:26:47 +02:00
= f.submit t('views.shared.account.create'), id: 'submit-password', disabled: :disabled, class: "fr-btn fr-btn--lg fr-mt-2w", data: { disable_with: t('views.users.passwords.edit.submit_loading') }