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
|
|
|
|
2023-09-04 17:08:52 +02:00
|
|
|
%fieldset.fr-fieldset
|
|
|
|
%legend.fr-fieldset__legend--regular.fr-fieldset__legend
|
2021-04-17 18:49:00 +02:00
|
|
|
= f.label :gender, t('activerecord.attributes.individual.gender')
|
2023-09-04 17:08:52 +02:00
|
|
|
.fr-fieldset__element.fr-fieldset__element--inline
|
|
|
|
.fr-radio-group
|
2023-09-05 14:42:56 +02:00
|
|
|
= f.radio_button :gender, Individual::GENDER_FEMALE, required: true, id: "identite_champ_radio_#{Individual::GENDER_FEMALE}"
|
|
|
|
%label.fr-label{ for: "identite_champ_radio_#{Individual::GENDER_FEMALE}" }
|
2023-09-04 17:08:52 +02:00
|
|
|
= Individual.human_attribute_name('gender.female')
|
|
|
|
.fr-fieldset__element.fr-fieldset__element--inline
|
|
|
|
.fr-radio-group
|
2023-09-05 14:42:56 +02:00
|
|
|
= f.radio_button :gender, Individual::GENDER_MALE, required: true, id: "identite_champ_radio_#{Individual::GENDER_MALE}"
|
|
|
|
%label.fr-label{ for: "identite_champ_radio_#{Individual::GENDER_MALE}" }
|
2023-09-04 17:08: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
|
2023-09-04 17:08:52 +02:00
|
|
|
= f.label :prenom, for: 'identite_champ_first_name', class: 'fr-label'
|
|
|
|
= f.text_field :prenom, class: 'fr-input', required: true, autocomplete: 'given-name', id: 'identite_champ_first_name'
|
2019-01-07 12:17:11 +01:00
|
|
|
.inline-champ
|
2023-09-04 17:08:52 +02:00
|
|
|
= f.label :nom, class: 'fr-label', for: 'identite_champ_last_name'
|
|
|
|
= f.text_field :nom, class: "fr-input", required: true, autocomplete: 'family-name', id: 'identite_champ_last_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?
|
2023-09-04 17:08:52 +02:00
|
|
|
.fr-input-group
|
|
|
|
= f.label :birthdate, class: "fr-label", for: 'identite_champ_birthdate'
|
|
|
|
= f.date_field :birthdate, value: @dossier.individual.birthdate, placeholder: 'format : AAAA-MM-JJ', required: true, class: "fr-input", "aria-describedby" => "identite-champ-date-birthday", id: 'identite_champ_birthdate'
|
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"
|