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|
|
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
|
2023-09-18 18:15:28 +02:00
|
|
|
%h2.fr-h4= t('views.users.dossiers.identite.identity_data')
|
|
|
|
.fr-fieldset__element
|
|
|
|
%fieldset.fr-fieldset
|
|
|
|
%legend.fr-fieldset__legend--regular.fr-fieldset__legend
|
|
|
|
= t('activerecord.attributes.individual.gender')
|
|
|
|
= render EditableChamp::AsteriskMandatoryComponent.new
|
|
|
|
.fr-fieldset__element
|
|
|
|
.fr-radio-group
|
|
|
|
= 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}" }
|
|
|
|
= Individual.human_attribute_name('gender.female')
|
|
|
|
.fr-fieldset__element
|
|
|
|
.fr-radio-group
|
|
|
|
= 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}" }
|
|
|
|
= Individual.human_attribute_name('gender.male')
|
|
|
|
|
|
|
|
.fr-fieldset__element.fr-fieldset__element--short-text
|
|
|
|
= render Dsfr::InputComponent.new(form: f, attribute: :prenom, opts: { autocomplete: 'given-name' })
|
|
|
|
|
|
|
|
.fr-fieldset__element.fr-fieldset__element--short-text
|
|
|
|
= render Dsfr::InputComponent.new(form: f, attribute: :nom, opts: { autocomplete: 'family-name' })
|
|
|
|
|
|
|
|
- if @dossier.procedure.ask_birthday?
|
|
|
|
.fr-fieldset__element
|
|
|
|
= render Dsfr::InputComponent.new(form: f, attribute: :birthdate, input_type: :date_field,
|
|
|
|
opts: { placeholder: 'Format : AAAA-MM-JJ', max: Date.today.iso8601, min: "1900-01-01", autocomplete: 'bday' })
|
|
|
|
|
|
|
|
.fr-fieldset__element
|
|
|
|
= f.submit t('views.users.dossiers.identite.continue'), class: "fr-btn fr-btn--lg fr-my-2w"
|