demarches-normaliennes/app/views/new_gestionnaire/dossiers/messagerie.html.haml

22 lines
1 KiB
Text
Raw Normal View History

2017-07-19 11:08:53 +02:00
= render partial: "header", locals: { dossier: @dossier }
#dossier-messagerie.container
%ul
- @dossier.commentaires.ordered.each do |commentaire|
2017-07-19 11:08:53 +02:00
%li
2017-07-20 14:23:16 +02:00
= render partial: 'commentaire_icon', locals: { commentaire: commentaire, current_gestionnaire: current_gestionnaire }
2017-07-24 10:01:53 +02:00
.width-100
2017-07-20 14:23:16 +02:00
%h2
%span.mail
= render partial: 'commentaire_issuer', locals: { commentaire: commentaire, current_gestionnaire: current_gestionnaire }
- if ![current_gestionnaire.email, @dossier.user.email, 'contact@tps.apientreprise.fr'].include?(commentaire.email)
%span.guest Invité
%span.date= I18n.l(commentaire.created_at.localtime, format: '%d/%m/%y')
%p= sanitize(commentaire.body)
= form_for(Commentaire.new, url: commentaire_dossier_path(@dossier.procedure, @dossier), html: { class: 'form' }) do |f|
2017-07-24 09:53:43 +02:00
= f.text_area :body, rows: 5, placeholder: 'Répondre ici', required: true
.send-wrapper
= f.submit 'Envoyer', class: 'button send'