feat(instructeurs/dossiers): add summary to dossier.champs and dossier.champ_private views, also extract summary in

two component. one of type de champ editor. one for viewable champs
This commit is contained in:
mfo 2024-06-21 05:49:42 +02:00
parent 5a5ebfb235
commit d46dc7055d
No known key found for this signature in database
GPG key ID: 7CE3E1F5B794A8EC
14 changed files with 146 additions and 61 deletions

View file

@ -3,4 +3,8 @@
= render partial: "header", locals: { dossier: @dossier }
#dossier-annotations-privees
= render partial: "shared/dossiers/edit_annotations", locals: { dossier: @dossier, seen_at: @annotations_privees_seen_at }
.fr-container
.fr-grid-row.fr-grid-row--center
.fr-col-md-3= render ViewableChamp::HeaderSectionsSummaryComponent.new(dossier: @dossier, is_private: true)
.fr-col-md-9
= render partial: "shared/dossiers/edit_annotations", locals: { dossier: @dossier, seen_at: @annotations_privees_seen_at }

View file

@ -14,4 +14,8 @@
%p
Les informations sur l'entreprise arriveront dici quelques heures.
= render partial: "shared/dossiers/demande", locals: { dossier: @dossier, demande_seen_at: @demande_seen_at, profile: 'instructeur' }
.fr-container
.fr-grid-row.fr-grid-row--center
.fr-col-md-3= render ViewableChamp::HeaderSectionsSummaryComponent.new(dossier: @dossier, is_private: false)
.fr-col-md-9
= render partial: "shared/dossiers/demande", locals: { dossier: @dossier, demande_seen_at: @demande_seen_at, profile: 'instructeur' }