change le texte de la messagerie selon le type d'utilisateur

This commit is contained in:
clemkeirua 2019-09-05 16:47:25 +02:00 committed by Pierre de La Morinerie
parent 79c5df00ef
commit 6849fd6afe

View file

@ -1,5 +1,8 @@
= form_for(commentaire, url: form_url, html: { class: 'form' }) do |f| = form_for(commentaire, url: form_url, html: { class: 'form' }) do |f|
= f.text_area :body, rows: 5, placeholder: 'Écrivez votre message à ladministration ici', required: true, class: 'message-textarea' - placeholder = 'Écrivez votre message à ladministration 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 .flex.justify-between.wrap
%div %div
= f.file_field :piece_jointe, id: 'piece_jointe', direct_upload: true = f.file_field :piece_jointe, id: 'piece_jointe', direct_upload: true