2017-11-28 11:37:42 +01:00
|
|
|
|
= form_for(commentaire, url: form_url, html: { class: 'form' }) do |f|
|
2019-09-05 16:47:25 +02:00
|
|
|
|
- placeholder = 'Écrivez votre message à l’administration ici'
|
|
|
|
|
- if instructeur_signed_in? || administrateur_signed_in?
|
|
|
|
|
- placeholder = 'Écrivez votre message ici'
|
|
|
|
|
= f.text_area :body, rows: 5, placeholder: placeholder, required: true, class: 'message-textarea'
|
2019-01-07 16:04:48 +01:00
|
|
|
|
.flex.justify-between.wrap
|
2017-11-28 11:37:42 +01:00
|
|
|
|
%div
|
2019-06-25 17:12:44 +02:00
|
|
|
|
= f.file_field :piece_jointe, id: 'piece_jointe', direct_upload: true
|
|
|
|
|
%label{ for: :piece_jointe }
|
2019-11-19 15:01:06 +01:00
|
|
|
|
%span.notice
|
2017-11-28 11:37:42 +01:00
|
|
|
|
(taille max : 20 Mo)
|
|
|
|
|
|
2018-09-04 18:25:55 +02:00
|
|
|
|
%div
|
2019-01-07 16:04:59 +01:00
|
|
|
|
= f.submit 'Envoyer le message', class: 'button primary send', data: { disable: true }
|