14 lines
647 B
Text
14 lines
647 B
Text
= form_for(commentaire, url: form_url, html: { class: 'form' }) do |f|
|
||
- 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'
|
||
.flex.justify-between.wrap
|
||
%div
|
||
= f.file_field :piece_jointe, id: 'piece_jointe', direct_upload: true
|
||
%label{ for: :piece_jointe }
|
||
.notice
|
||
(taille max : 20 Mo)
|
||
|
||
%div
|
||
= f.submit 'Envoyer le message', class: 'button primary send', data: { disable: true }
|