30 lines
1.5 KiB
Text
30 lines
1.5 KiB
Text
- dossier_for_editing = dossier.en_construction? ? dossier.owner_editing_fork : dossier
|
|
|
|
- if dossier.france_connected_with_one_identity? && current_user.instructeur? && !current_user.owns_or_invite?(dossier)
|
|
- content_for(:notice_info) do
|
|
= render partial: "shared/dossiers/france_connect_informations_notice", locals: { user_information: dossier.user.france_connect_informations.first }
|
|
|
|
|
|
.dossier-edit.container.counter-start-header-section
|
|
= render partial: "shared/dossiers/submit_is_over", locals: { dossier: dossier }
|
|
= render NestedForms::FormOwnerComponent.new
|
|
= 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|
|
|
|
|
= render Dossiers::ErrorsFullMessagesComponent.new(dossier: dossier)
|
|
%header.mb-6
|
|
.fr-highlight
|
|
%p.fr-text--sm
|
|
%strong
|
|
= t('utils.asterisk_html')
|
|
- if dossier.brouillon?
|
|
= t('views.shared.dossiers.edit.autosave')
|
|
|
|
= render Procedure::NoticeComponent.new(procedure: dossier.procedure)
|
|
|
|
%fieldset.fr-fieldset= render EditableChamp::SectionComponent.new(dossier: dossier_for_editing, types_de_champ: dossier_for_editing.revision.types_de_champ_public)
|
|
|
|
= render Dossiers::PendingCorrectionCheckboxComponent.new(dossier: dossier)
|
|
|
|
= render Dossiers::InvalidIneligibiliteRulesComponent.new(dossier: dossier)
|
|
|
|
= render Dossiers::EditFooterComponent.new(dossier: dossier_for_editing, annotation: false)
|