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

33 lines
1.6 KiB
Text
Raw Normal View History

- content_for(:title, t(".title", scope: :metas, procedure_label: @dossier.procedure.libelle))
2018-08-29 17:09:48 +02:00
= render partial: "shared/dossiers/submit_is_over", locals: { dossier: @dossier }
- if !dossier_submission_is_closed?(@dossier)
- if @dossier.procedure.for_tiers_enabled?
= form_for @dossier, url: identite_dossier_path(@dossier), method: :patch, html: { class: "form" }, data: {turbo: true, controller: :autosubmit} do |f|
2023-11-14 16:11:17 +01:00
%p.fr-text--sm= t('utils.asterisk_html')
%fieldset#radio-rich-hint.fr-fieldset{ "aria-labelledby" => "radio-rich-hint-legend radio-rich-hint-messages" }
%legend#radio-rich-hint-legend.fr-fieldset__legend--regular.fr-fieldset__legend
= t('views.users.dossiers.identite.legend')
.fr-fieldset__element
.fr-radio-group.fr-radio-rich
= f.radio_button :for_tiers, false, required: true, id: "radio-self-manage"
%label.fr-label{ for: "radio-self-manage" }
= t('activerecord.attributes.dossier.for_tiers.false')
.fr-radio-rich__img
%span.fr-icon-user-fill
.fr-fieldset__element
.fr-radio-group.fr-radio-rich
= f.radio_button :for_tiers, true, required: true, id: "radio-tiers-manage"
%label.fr-label{ for: "radio-tiers-manage" }
= t('activerecord.attributes.dossier.for_tiers.true')
.fr-radio-rich__img
%span.fr-icon-parent-fill
2023-11-14 16:11:17 +01:00
= f.submit t('views.users.dossiers.identite.continue'), class: 'visually-hidden'
2023-12-20 10:49:47 +01:00
2024-04-12 17:59:50 +02:00
= render Dossiers::IndividualFormComponent.new(dossier: @dossier)