demarches-normaliennes/app/views/experts/avis/sign_up.html.haml
2024-02-19 11:28:38 +01:00

20 lines
1.2 KiB
Text
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

.two-columns.avis-sign-up
.columns-container
.column.left
%h2.fr-py-5w.text-center= @dossier.procedure.libelle
%p.dossier Dossier nº #{@dossier.id}
.column
= form_for(User.new(email: @email), url: sign_up_expert_avis_path(email: @email), method: :post, html: { class: "fr-py-5w" }) do |f|
%h1.fr-h2= t('views.registrations.new.title', name: APPLICATION_NAME)
%fieldset.fr-mb-0.fr-fieldset{ aria: { labelledby: 'create-account-legend' } }
.fr-fieldset__element
%p.fr-text--sm= t('utils.mandatory_champs')
.fr-fieldset__element= 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: { autocomplete: 'new-password', minlength: PASSWORD_MIN_LENGTH }) do |c|
- c.with_describedby do
= render partial: "devise/password_rules", locals: { id: c.describedby_id }
%ul.fr-btns-group
%li= f.submit t('views.shared.account.create'), class: "fr-btn"