2023-03-21 18:24:39 +01:00
|
|
|
- dossier_for_editing = dossier.en_construction? ? dossier.owner_editing_fork : dossier
|
|
|
|
|
2024-03-05 14:00:54 +01:00
|
|
|
- if dossier.france_connected_with_one_identity? && current_user.instructeur? && !current_user.owns_or_invite?(dossier)
|
2022-09-14 16:19:14 +02:00
|
|
|
- content_for(:notice_info) do
|
2024-03-05 14:00:54 +01:00
|
|
|
= render partial: "shared/dossiers/france_connect_informations_notice", locals: { user_information: dossier.france_connect_informations.first }
|
2022-09-14 16:19:14 +02:00
|
|
|
|
2023-09-19 11:07:50 +02:00
|
|
|
|
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|
|
2023-09-19 11:07:50 +02:00
|
|
|
|
|
|
|
= render Dossiers::ErrorsFullMessagesComponent.new(dossier: @dossier, errors: @errors || [])
|
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-16 17:21:10 +02:00
|
|
|
= render Procedure::NoticeComponent.new(procedure: dossier.procedure)
|
2022-09-19 12:10:31 +02:00
|
|
|
|
2024-03-14 15:13:13 +01:00
|
|
|
= render EditableChamp::SectionComponent.new(dossier: dossier_for_editing, types_de_champ: dossier_for_editing.revision.types_de_champ_public)
|
2023-04-11 18:31:16 +02:00
|
|
|
|
2023-11-22 12:06:21 +01:00
|
|
|
= render Dossiers::PendingCorrectionCheckboxComponent.new(dossier: dossier)
|
2023-04-11 18:31:16 +02:00
|
|
|
|
2023-03-21 18:24:39 +01:00
|
|
|
= render Dossiers::EditFooterComponent.new(dossier: dossier_for_editing, annotation: false)
|