2015-09-24 10:17:59 +02:00
|
|
|
.content#commentaires_flux{style:'width:100%;'}
|
2016-04-20 16:51:57 +02:00
|
|
|
%div#commentaire_new{style: 'width:80%; margin-left:auto; margin-right:auto; margin-bottom:7%'}
|
2016-11-14 18:00:26 +01:00
|
|
|
= form_tag(url_for({ controller: 'commentaires', action: :create, dossier_id: @facade.dossier.id, champ_id: @facade.champ_id }), class: 'form-inline', method: 'POST', multipart: true) do
|
2016-04-20 16:51:57 +02:00
|
|
|
%textarea.form-control{id: 'texte_commentaire', class: 'wysihtml5', name: 'texte_commentaire', style: 'width: 100%; margin-bottom:2%', rows: '5', placeholder:"Commentaire"}
|
|
|
|
%h4.text-primary{style: 'margin-top: 0px'} Ajout un fichier
|
|
|
|
= file_field_tag "piece_justificative[content]", accept: PieceJustificative.accept_format, style: 'float: left; margin-left: 20px'
|
2015-11-19 16:47:56 +01:00
|
|
|
%input.form-control.btn.btn-success{:type => 'submit', :value => 'Poster', style: 'float:right'}
|
2015-09-24 10:17:59 +02:00
|
|
|
|
2015-12-24 15:10:20 +01:00
|
|
|
-@facade.commentaires.each do |com|
|
2015-09-24 10:17:59 +02:00
|
|
|
%span.text-info#email_contact{style: 'font-weight:bold'}
|
|
|
|
=com.email
|
|
|
|
%span#created_at
|
|
|
|
\-
|
|
|
|
=com.created_at_fr
|
2016-04-20 16:51:57 +02:00
|
|
|
- unless com.piece_justificative.nil?
|
|
|
|
\-
|
|
|
|
%span#piece_justificative
|
|
|
|
%b
|
2016-05-13 16:08:51 +02:00
|
|
|
= link_to com.piece_justificative.original_filename, com.piece_justificative.content_url, style:'color: green', target: '_blank'
|
2016-04-20 16:51:57 +02:00
|
|
|
|
2015-09-24 10:17:59 +02:00
|
|
|
%br
|
|
|
|
.description#body
|
2016-02-18 11:56:54 +01:00
|
|
|
=com.body.html_safe
|
2016-04-20 16:51:57 +02:00
|
|
|
|
|
|
|
|
2015-09-24 10:17:59 +02:00
|
|
|
%br
|