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