mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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:
parent
d050b626db
commit
21a23c9abe
14 changed files with 128 additions and 14 deletions
|
@ -21,12 +21,15 @@ Routes:
|
|||
| format('<a href="https://daringfireball.net/projects/markdown/syntax">',
|
||||
"</a>")
|
||||
| safe }}
|
||||
<br/>
|
||||
{{ "Maximum number of characters" | tr }}: {{ max_chars_comment }}.
|
||||
</p>
|
||||
<p>
|
||||
<textarea id="id_comment"
|
||||
name="comment"
|
||||
cols="80"
|
||||
rows="10"
|
||||
maxlength="{{ max_chars_comment }}"
|
||||
>{% if comment %}{{ comment.Comments or '' }}{% endif %}</textarea>
|
||||
</p>
|
||||
<p>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
<p>
|
||||
<label for="id_comments">{{ "Comments" | tr }}:</label>
|
||||
<textarea id="id_comments" name="comments"
|
||||
rows="5" cols="50"
|
||||
rows="5" cols="50" maxlength="{{ max_chars_comment }}"
|
||||
placeholder="Related package request closure comments..."
|
||||
></textarea>
|
||||
</p>
|
||||
|
|
|
@ -55,6 +55,7 @@
|
|||
<textarea id="id_comments"
|
||||
name="comments"
|
||||
rows="5" cols="50"
|
||||
maxlength="{{ max_chars_comment }}"
|
||||
placeholder="Related package request closure comments..."
|
||||
></textarea>
|
||||
</p>
|
||||
|
|
|
@ -60,7 +60,8 @@
|
|||
<textarea id="id_comments"
|
||||
name="comments"
|
||||
rows="5"
|
||||
cols="50"></textarea>
|
||||
cols="50"
|
||||
maxlength="{{ max_chars_comment }}"></textarea>
|
||||
</p>
|
||||
<p>
|
||||
<input class="button" type="submit" value="{{ 'Flag' | tr }}" />
|
||||
|
|
|
@ -52,6 +52,7 @@
|
|||
<textarea id="id_comments"
|
||||
name="comments"
|
||||
rows="5" cols="50"
|
||||
maxlength="{{ max_chars_comment }}"
|
||||
placeholder="Related package request closure comments..."
|
||||
></textarea>
|
||||
</p>
|
||||
|
|
|
@ -64,7 +64,10 @@
|
|||
<p>
|
||||
<label for="id_comments">{{ "Comments" | tr }}:</label>
|
||||
<textarea id="id_comments" name="comments"
|
||||
rows="5" cols="50">{{ comments or '' }}</textarea>
|
||||
rows="5" cols="50"
|
||||
maxlength="{{ max_chars_comment }}"
|
||||
>{{ comments or '' }}
|
||||
</textarea>
|
||||
</p>
|
||||
|
||||
<p id="deletion_hint">
|
||||
|
|
|
@ -26,7 +26,8 @@
|
|||
<p>
|
||||
<label for="id_comments">{{ "Comments" | tr }}:</label>
|
||||
<textarea id="id_comments" name="comments"
|
||||
rows="5" cols="50"></textarea>
|
||||
rows="5" cols="50" maxlength="{{ max_chars_comment }}"
|
||||
></textarea>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue