Rely on the champs partial for annotations privées when printing

This commit is contained in:
gregoirenovel 2018-12-29 20:42:18 +01:00
parent 55419b92a8
commit 1c2f1a715c

View file

@ -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