2015-08-10 11:05:06 +02:00
|
|
|
.content#commentaires_flux
|
|
|
|
%h3 Commentaires
|
|
|
|
|
|
|
|
%div{style: 'margin-left:3%; width:80%'}
|
|
|
|
-@commentaires.each do |com|
|
|
|
|
%span.text-info#email_contact{style: 'font-weight:bold'}
|
|
|
|
=com.email
|
|
|
|
%span#created_at
|
|
|
|
\-
|
|
|
|
=com.created_at_fr
|
|
|
|
%br
|
|
|
|
.description#body
|
|
|
|
=com.body
|
|
|
|
%br
|
|
|
|
|
|
|
|
%h4{style: 'margin-bottom:2%'} Nouveau
|
2015-08-25 16:33:55 +02:00
|
|
|
= form_tag(url_for({ controller: :commentaires, action: :create, dossier_id: @dossier.id }), class: 'form-inline', method: 'POST') do
|
2015-08-10 11:05:06 +02:00
|
|
|
%input.form-control{:type => 'text', style: 'width: 30%; margin-bottom:2%', :id => 'email_commentaire', :name => 'email_commentaire', :value => @commentaire_email}
|
2015-08-11 15:22:07 +02:00
|
|
|
%textarea.form-control{:id => 'texte_commentaire', :name => 'texte_commentaire', style: 'width: 100%; margin-bottom:2%', rows: '5', maxlength: '255'}
|
2015-08-10 11:05:06 +02:00
|
|
|
%br
|
|
|
|
%input.form-control.btn.btn-success{:type => 'submit', :value => 'Poster', style: 'float:right'}
|
|
|
|
%br
|
|
|
|
%br
|
|
|
|
%br
|