Skip to content

Commit 94cfbf0

Browse files
author
Julien Jorge
committed
Add a placeholder text in the comment form to invite the user to be polite.
1 parent 377636a commit 94cfbf0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/views/comments/_form.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
= form.text_field :title, autocomplete: 'off', required: 'required', spellcheck: 'true', maxlength: 100
66
%p
77
= form.label :wiki_body, "Commentaire complet"
8-
= form.text_area :wiki_body, required: 'required', spellcheck: 'true', class: 'markItUp'
8+
= form.text_area :wiki_body, required: 'required', spellcheck: 'true', class: 'markItUp', placeholder: "Vous pouvez écrire votre commentaire ici.\n\nMerci de rester poli et courtois, on compte sur vous !"
99
%p
1010
= form.submit "Prévisualiser", id: "comment_preview"
1111
= form.submit "Poster le commentaire", 'data-disable-with' => "Enregistrement en cours" if @preview_mode

0 commit comments

Comments
 (0)