demarches-normaliennes/app/views/users/dossiers/identite.html.haml
2021-05-26 18:05:14 +02:00

34 lines
1.4 KiB
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

- content_for(:title, "Nouveau dossier (#{@dossier.procedure.libelle})")
= render partial: "shared/dossiers/submit_is_over", locals: { dossier: @dossier }
- if !dossier_submission_is_closed?(@dossier)
= form_for @dossier.individual, url: update_identite_dossier_path(@dossier), html: { class: "form" } do |f|
%h1 Données didentité
%p.mb-1 Merci de remplir vos informations personnelles pour accéder à la démarche.
%fieldset
%legend
= f.label :gender
.radios
%label
= f.radio_button :gender, Individual::GENDER_FEMALE, required: true
= t(Individual::GENDER_FEMALE, scope: 'activerecord.attributes.individual.gender_options')
%label
= f.radio_button :gender, Individual::GENDER_MALE, required: true
= t('activerecord.attributes.individual.gender_options')[Individual::GENDER_MALE.to_sym] # GENDER_MALE contains a point letter
.flex
.inline-champ
= f.label :prenom
= f.text_field :prenom, class: "small", required: true, autocomplete: 'given-name'
.inline-champ
= f.label :nom
= f.text_field :nom, class: "small", required: true, autocomplete: 'family-name'
- if @dossier.procedure.ask_birthday?
= 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"