diff --git a/app/assets/stylesheets/new_design/print.scss b/app/assets/stylesheets/new_design/print.scss index b4839bed6..ce5ca17d4 100644 --- a/app/assets/stylesheets/new_design/print.scss +++ b/app/assets/stylesheets/new_design/print.scss @@ -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; + } + } +} diff --git a/app/views/new_gestionnaire/dossiers/print.html.haml b/app/views/new_gestionnaire/dossiers/print.html.haml index bdbdff4e4..d557a198e 100644 --- a/app/views/new_gestionnaire/dossiers/print.html.haml +++ b/app/views/new_gestionnaire/dossiers/print.html.haml @@ -87,20 +87,11 @@ %h2 Messagerie -%table - - @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 +.messagerie + %ul.messages-list + - @dossier.commentaires.each do |commentaire| + %li + = render partial: "new_gestionnaire/shared/commentaires/commentaire", locals: { commentaire: commentaire } %script{ type: "text/javascript" } window.print();