[Fix #1002] Use partial in print view, and style messagerie in print mode to display all messages
This commit is contained in:
parent
9002cb70fc
commit
a3b93229e9
2 changed files with 25 additions and 14 deletions
|
@ -37,3 +37,23 @@ th {
|
|||
font-size: 1.2em;
|
||||
}
|
||||
}
|
||||
|
||||
.messagerie {
|
||||
.messages-list {
|
||||
list-style: none;
|
||||
padding-left: 0;
|
||||
max-height: none;
|
||||
|
||||
li {
|
||||
margin-bottom: 40px;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 110%;
|
||||
}
|
||||
|
||||
.person-icon {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -87,20 +87,11 @@
|
|||
|
||||
%h2 Messagerie
|
||||
|
||||
%table
|
||||
.messagerie
|
||||
%ul.messages-list
|
||||
- @dossier.commentaires.each do |commentaire|
|
||||
%tr
|
||||
%th
|
||||
= render partial: 'new_gestionnaire/shared/commentaires/commentaire_issuer', locals: { commentaire: commentaire, current_gestionnaire: current_gestionnaire }
|
||||
- if ![current_gestionnaire.email, @dossier.user.email, 'contact@tps.apientreprise.fr'].include?(commentaire.email)
|
||||
(invité)
|
||||
%br
|
||||
= I18n.l(commentaire.created_at.localtime, format: 'le %d/%m/%Y à %H:%M')
|
||||
%td
|
||||
%p= sanitize(commentaire.body)
|
||||
- if file = commentaire.piece_justificative
|
||||
%br
|
||||
= file.original_filename
|
||||
%li
|
||||
= render partial: "new_gestionnaire/shared/commentaires/commentaire", locals: { commentaire: commentaire }
|
||||
|
||||
%script{ type: "text/javascript" }
|
||||
window.print();
|
||||
|
|
Loading…
Reference in a new issue