2018-08-29 17:09:48 +02:00
|
|
|
- content_for(:title, "Nouveau dossier (#{@dossier.procedure.libelle})")
|
|
|
|
|
2019-01-07 12:17:11 +01:00
|
|
|
= render partial: "shared/dossiers/submit_is_over", locals: { dossier: @dossier }
|
2018-06-19 16:23:43 +02:00
|
|
|
|
2019-01-07 12:17:11 +01:00
|
|
|
- if !dossier_submission_is_closed?(@dossier)
|
|
|
|
= form_for @dossier.individual, url: update_identite_dossier_path(@dossier), html: { class: "form" } do |f|
|
2022-12-02 12:06:57 +01:00
|
|
|
%h2.fr-h4= t('views.users.dossiers.identite.identity_data')
|
2018-02-08 17:13:15 +01:00
|
|
|
|
2022-12-02 12:06:57 +01:00
|
|
|
%p.fr-text--sm= t('views.users.dossiers.identite.complete_data')
|
|
|
|
|
|
|
|
%p.fr-hint-text.fr-mb-3w= t('views.users.dossiers.identite.all_required')
|
2018-06-25 18:07:16 +02:00
|
|
|
|
2020-03-23 17:42:31 +01:00
|
|
|
%fieldset
|
|
|
|
%legend
|
2021-04-17 18:49:00 +02:00
|
|
|
= f.label :gender, t('activerecord.attributes.individual.gender')
|
2020-03-23 17:42:31 +01:00
|
|
|
.radios
|
|
|
|
%label
|
2020-03-31 16:25:21 +02:00
|
|
|
= f.radio_button :gender, Individual::GENDER_FEMALE, required: true
|
2021-09-09 20:15:52 +02:00
|
|
|
= Individual.human_attribute_name('gender.female')
|
2020-12-08 17:29:07 +01:00
|
|
|
%label
|
|
|
|
= f.radio_button :gender, Individual::GENDER_MALE, required: true
|
2021-09-09 20:15:52 +02:00
|
|
|
= Individual.human_attribute_name('gender.male')
|
2018-06-25 18:07:16 +02:00
|
|
|
|
2019-01-07 12:17:11 +01:00
|
|
|
.flex
|
|
|
|
.inline-champ
|
2020-03-31 16:26:00 +02:00
|
|
|
= f.label :prenom
|
2020-03-31 16:58:36 +02:00
|
|
|
= f.text_field :prenom, class: "small", required: true, autocomplete: 'given-name'
|
2019-01-07 12:17:11 +01:00
|
|
|
.inline-champ
|
2020-03-31 16:26:00 +02:00
|
|
|
= f.label :nom
|
2020-03-31 16:58:36 +02:00
|
|
|
= f.text_field :nom, class: "small", required: true, autocomplete: 'family-name'
|
2018-06-25 18:07:16 +02:00
|
|
|
|
2021-04-17 18:49:00 +02:00
|
|
|
|
2019-01-07 12:17:11 +01:00
|
|
|
- if @dossier.procedure.ask_birthday?
|
2020-03-31 16:26:00 +02:00
|
|
|
= f.label :birthdate
|
2019-01-07 12:17:11 +01:00
|
|
|
= f.date_field :birthdate, value: @dossier.individual.birthdate, placeholder: 'format : AAAA-MM-JJ', required: true, class: "small"
|
2018-06-25 18:07:16 +02:00
|
|
|
|
2023-07-31 14:43:00 +02:00
|
|
|
= f.submit t('views.users.dossiers.identite.continue'), class: "fr-btn fr-btn--lg fr-mt-4w"
|