Show pieces justificatives in messagerie

This commit is contained in:
Mathieu Magnin 2017-09-12 15:27:57 +02:00
parent 581da1921e
commit 9c8061d5a4
5 changed files with 15 additions and 0 deletions

View file

@ -14,6 +14,11 @@
%span.guest Invité
%span.date= I18n.l(commentaire.created_at.localtime, format: '%H:%M le %d/%m/%Y')
%p= sanitize(commentaire.body)
- if file = commentaire.piece_justificative
.attachment-link
= link_to file.content_url, class: "button", target: "_blank", title: "Télécharger" do
%i.attachment
= file.original_filename
= form_for(Commentaire.new, url: commentaire_dossier_path(@dossier.procedure, @dossier), html: { class: 'form' }) do |f|
= f.text_area :body, rows: 5, placeholder: 'Répondre ici', required: true

View file

@ -13,6 +13,7 @@
%i.edit
%i.in-progress
%i.bubble
%i.attachment
%h1 Formulaires