Merge pull request #4970 from betagouv/improve-identite-required-fields
Usager : simplification de l'apparence des champs sur la page Identité
This commit is contained in:
commit
d47ec3d3ad
1 changed files with 6 additions and 10 deletions
|
@ -8,31 +8,27 @@
|
|||
|
||||
%p.mb-1 Merci de remplir vos informations personnelles pour accéder à la démarche.
|
||||
|
||||
%span.form-label
|
||||
%span.mandatory *
|
||||
champs requis
|
||||
|
||||
%fieldset
|
||||
%legend
|
||||
= f.label :gender, class: "required"
|
||||
= f.label :gender
|
||||
.radios
|
||||
%label
|
||||
= f.radio_button :gender, Individual::GENDER_MALE
|
||||
= f.radio_button :gender, Individual::GENDER_MALE, required: true
|
||||
= Individual::GENDER_MALE
|
||||
%label
|
||||
= f.radio_button :gender, Individual::GENDER_FEMALE
|
||||
= f.radio_button :gender, Individual::GENDER_FEMALE, required: true
|
||||
= Individual::GENDER_FEMALE
|
||||
|
||||
.flex
|
||||
.inline-champ
|
||||
= f.label :prenom, class: "required"
|
||||
= f.label :prenom
|
||||
= f.text_field :prenom, class: "small", required: true, autocomplete: 'given-name'
|
||||
.inline-champ
|
||||
= f.label :nom, class: "required"
|
||||
= f.label :nom
|
||||
= f.text_field :nom, class: "small", required: true, autocomplete: 'family-name'
|
||||
|
||||
- if @dossier.procedure.ask_birthday?
|
||||
= f.label :birthdate, class: "required"
|
||||
= f.label :birthdate
|
||||
= f.date_field :birthdate, value: @dossier.individual.birthdate, placeholder: 'format : AAAA-MM-JJ', required: true, class: "small"
|
||||
|
||||
= f.submit "Continuer", class: "button large primary expand"
|
||||
|
|
Loading…
Reference in a new issue