Skip to content

Commit 58eea33

Browse files
authored
Merge pull request #314 from j-jorge/comment-placeholder
Add a placeholder text in the comment form to invite the user to be polite.
2 parents 44be0cb + 94cfbf0 commit 58eea33

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)