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
|
||||
|
||||
- if @dossier.champs_private.present?
|
||||
%table
|
||||
- @dossier.champs_private.each do |champ|
|
||||
%tr
|
||||
%th
|
||||
= champ.libelle
|
||||
%td
|
||||
= champ.value
|
||||
- champs_annotations_privees = @dossier.champs_private
|
||||
- if champs_annotations_privees.any?
|
||||
= render partial: "shared/dossiers/champs", locals: { champs: champs_annotations_privees, dossier: @dossier, demande_seen_at: nil, profile: 'instructeur' }
|
||||
- else
|
||||
Aucune annotation privée
|
||||
|
||||
|
|
Loading…
Reference in a new issue