style(dsfr): profile email input converted to dsfr

This commit is contained in:
Colin Darie 2023-07-31 14:43:00 +02:00
parent 50e7090b9e
commit 1868c1da09
No known key found for this signature in database
GPG key ID: 8C76CADD40253590
2 changed files with 3 additions and 3 deletions

View file

@ -34,4 +34,4 @@
= f.label :birthdate
= f.date_field :birthdate, value: @dossier.individual.birthdate, placeholder: 'format : AAAA-MM-JJ', required: true, class: "small"
= f.submit t('views.users.dossiers.identite.continue'), class: "fr-btn fr-btn--lg"
= f.submit t('views.users.dossiers.identite.continue'), class: "fr-btn fr-btn--lg fr-mt-4w"

View file

@ -39,8 +39,8 @@
application_name: APPLICATION_NAME,
legit_admin_domains: LEGIT_ADMIN_DOMAINS.join(', '))
= form_for current_user, url: update_email_path, method: :patch, html: { class: 'form' } do |f|
= f.email_field :email, value: nil, placeholder: t('.new_email_address'), required: true
= form_for current_user, url: update_email_path, method: :patch do |f|
= render Dsfr::InputComponent.new(form: f, attribute: :email, input_type: :email_field, opts: { value: nil, placeholder: t('.new_email_address') })
= f.submit t('.change_address'), class: 'fr-btn fr-btn--secondary'
- if !instructeur_signed_in?