Rely on the champs partial for annotations privées when printing
This commit is contained in:
parent
55419b92a8
commit
1c2f1a715c
1 changed files with 3 additions and 8 deletions
|
@ -33,14 +33,9 @@
|
||||||
|
|
||||||
%h2 Annotations privées
|
%h2 Annotations privées
|
||||||
|
|
||||||
- if @dossier.champs_private.present?
|
- champs_annotations_privees = @dossier.champs_private
|
||||||
%table
|
- if champs_annotations_privees.any?
|
||||||
- @dossier.champs_private.each do |champ|
|
= render partial: "shared/dossiers/champs", locals: { champs: champs_annotations_privees, dossier: @dossier, demande_seen_at: nil, profile: 'instructeur' }
|
||||||
%tr
|
|
||||||
%th
|
|
||||||
= champ.libelle
|
|
||||||
%td
|
|
||||||
= champ.value
|
|
||||||
- else
|
- else
|
||||||
Aucune annotation privée
|
Aucune annotation privée
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue