2023-03-21 18:24:39 +01:00
|
|
|
- dossier_for_editing = dossier.en_construction? ? dossier.owner_editing_fork : dossier
|
|
|
|
|
2022-09-14 16:19:14 +02:00
|
|
|
- if dossier.france_connect_information.present?
|
|
|
|
- content_for(:notice_info) do
|
|
|
|
= render partial: "shared/dossiers/france_connect_informations_notice", locals: { user_information: dossier.france_connect_information }
|
|
|
|
|
2023-02-20 16:45:00 +01:00
|
|
|
.dossier-edit.container.counter-start-header-section
|
2018-06-25 18:07:16 +02:00
|
|
|
= render partial: "shared/dossiers/submit_is_over", locals: { dossier: dossier }
|
2023-03-31 16:10:47 +02:00
|
|
|
= render NestedForms::FormOwnerComponent.new
|
2023-03-21 18:24:39 +01:00
|
|
|
= form_for dossier_for_editing, url: brouillon_dossier_url(dossier), method: :patch, html: { id: 'dossier-edit-form', class: 'form', multipart: true, novalidate: 'novalidate' } do |f|
|
2022-09-13 12:21:09 +02:00
|
|
|
%header.mb-6
|
|
|
|
.fr-highlight
|
|
|
|
%p.fr-text--sm
|
|
|
|
%strong
|
|
|
|
= t('utils.asterisk_html')
|
|
|
|
- if dossier.brouillon?
|
|
|
|
= t('views.shared.dossiers.edit.autosave')
|
|
|
|
|
2023-06-07 10:52:24 +02:00
|
|
|
- if dossier.procedure.notice.attached?
|
2023-06-05 14:25:51 +02:00
|
|
|
= render Dsfr::DownloadComponent.new(attachment: dossier.procedure.notice , url: notice_url(dossier.procedure), name: t("views.shared.dossiers.edit.notice"), ephemeral_link: administrateur_signed_in?)
|
2022-09-19 12:10:31 +02:00
|
|
|
|
2021-03-03 18:21:00 +01:00
|
|
|
- if dossier.show_groupe_instructeur_selector?
|
2022-09-08 11:26:18 +02:00
|
|
|
%span{ data: { controller: 'autosave' } }
|
2022-05-06 19:52:55 +02:00
|
|
|
= f.label :groupe_instructeur_id do
|
|
|
|
= dossier.procedure.routing_criteria_name
|
|
|
|
%span.mandatory *
|
|
|
|
= f.select :groupe_instructeur_id,
|
2022-11-23 09:10:39 +01:00
|
|
|
dossier.procedure.groupe_instructeurs.active.map { |gi| [gi.label, gi.id] },
|
2022-05-06 19:52:55 +02:00
|
|
|
{ include_blank: dossier.brouillon? }
|
2023-03-21 18:24:39 +01:00
|
|
|
|
|
|
|
= render EditableChamp::SectionComponent.new(champs: dossier_for_editing.champs_public)
|
2023-04-11 18:31:16 +02:00
|
|
|
|
|
|
|
- if dossier.pending_correction?
|
|
|
|
.fr-checkbox-group.fr-my-3w
|
|
|
|
= check_box_tag field_name(:dossier, :pending_correction_confirm), "1", false, form: "form-submit-en-construction"
|
|
|
|
%label.fr-label{ for: :dossier_pending_correction_confirm }= t('views.shared.dossiers.edit.pending_correction.confirm_label')
|
|
|
|
|
|
|
|
|
2023-03-21 18:24:39 +01:00
|
|
|
= render Dossiers::EditFooterComponent.new(dossier: dossier_for_editing, annotation: false)
|