Add missing locals to partials called in the print template

This commit is contained in:
gregoirenovel 2017-12-14 15:41:53 +01:00
parent 22d77b5ab4
commit 13d8d4bfd4
2 changed files with 6 additions and 2 deletions

View file

@ -57,3 +57,7 @@ th {
}
}
}
.updated-at {
display: none;
}

View file

@ -13,7 +13,7 @@
- champs = @dossier.ordered_champs.decorate
- if champs.any?
= render partial: "champs", locals: { champs: champs, dossier: @dossier }
= render partial: "champs", locals: { champs: champs, dossier: @dossier, demande_seen_at: nil }
- if @dossier.procedure.use_api_carto
%h3 Cartographie
@ -91,7 +91,7 @@
%ul.messages-list
- @dossier.commentaires.each do |commentaire|
%li
= render partial: "new_gestionnaire/shared/commentaires/commentaire", locals: { commentaire: commentaire }
= render partial: "new_gestionnaire/shared/commentaires/commentaire", locals: { commentaire: commentaire, messagerie_seen_at: nil }
%script{ type: "text/javascript" }
window.print();