feat: Limit comment length

Limit the amount of characters that can be entered for a comment.

Signed-off-by: moson <moson@archlinux.org>
This commit is contained in:
moson 2024-02-25 10:46:47 +01:00
parent d050b626db
commit 21a23c9abe
No known key found for this signature in database
GPG key ID: 4A4760AB4EE15296
14 changed files with 128 additions and 14 deletions

View file

@ -24,13 +24,17 @@
"</a>"
) | safe
}}
<br/>
{{ "Maximum number of characters" | tr }}: {{ max_chars_comment }}.
</p>
<p>
<textarea id="id_comment"
name="comment"
cols="80"
rows="10">{{ comment.Comments }}</textarea>
rows="10"
maxlength="{{ max_chars_comment }}"
>{{ comment.Comments }}</textarea>
</p>
<p>