2017-11-28 11:37:42 +01:00
|
|
|
= form_for(commentaire, url: form_url, html: { class: 'form' }) do |f|
|
2017-12-18 13:57:27 +01:00
|
|
|
= f.text_area :body, rows: 5, placeholder: 'Répondre ici', required: true, class: 'message-textarea'
|
2017-11-28 11:37:42 +01:00
|
|
|
.flex.justify-between
|
|
|
|
%div
|
|
|
|
= f.file_field :file, id: :file, accept: commentaire.file.accept_extension_list
|
|
|
|
%label{ for: :file }
|
|
|
|
.notice
|
|
|
|
(taille max : 20 Mo)
|
|
|
|
|
2018-09-04 18:25:55 +02:00
|
|
|
%div
|
2018-09-04 18:24:15 +02:00
|
|
|
= f.submit 'Envoyer', class: 'button primary send', data: { disable: true }
|