From 6849fd6afee940afbcb6d0a9a5b6aadd2a368dbe Mon Sep 17 00:00:00 2001 From: clemkeirua Date: Thu, 5 Sep 2019 16:47:25 +0200 Subject: [PATCH] change le texte de la messagerie selon le type d'utilisateur --- app/views/shared/dossiers/messages/_form.html.haml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/views/shared/dossiers/messages/_form.html.haml b/app/views/shared/dossiers/messages/_form.html.haml index 30a598ff9..87e88d33c 100644 --- a/app/views/shared/dossiers/messages/_form.html.haml +++ b/app/views/shared/dossiers/messages/_form.html.haml @@ -1,5 +1,8 @@ = form_for(commentaire, url: form_url, html: { class: 'form' }) do |f| - = f.text_area :body, rows: 5, placeholder: 'Écrivez votre message à l’administration ici', required: true, class: 'message-textarea' + - 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