demarches-normaliennes/app/views/users/dossiers/identite.html.haml

39 lines
1.4 KiB
Text
Raw Normal View History

2018-08-29 17:09:48 +02:00
- 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 d'identité
%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"
.radios
%label
= f.radio_button :gender, Individual::GENDER_MALE, required: true
= Individual::GENDER_MALE
%label
= f.radio_button :gender, Individual::GENDER_FEMALE, required: true
= Individual::GENDER_FEMALE
.flex
.inline-champ
= f.label :prenom, class: "required"
= f.text_field :prenom, class: "small", required: true, autocomplete: 'given-name'
.inline-champ
= f.label :nom, class: "required"
= f.text_field :nom, class: "small", required: true, autocomplete: 'family-name'
- if @dossier.procedure.ask_birthday?
= f.label :birthdate, class: "required"
= 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"