edit_post_form.html: add textarea for ban and warning messages

This commit is contained in:
Zankaria 2025-11-07 23:42:24 +01:00
parent 2fb6919b4d
commit 34ab8629ef

View file

@ -1,6 +1,6 @@
<form action="" method="post">
<input type="hidden" name="token" value="{{ token }}">
<table>
<tr>
<th>
@ -35,10 +35,28 @@
<textarea name="body" id="body" rows="8" cols="35">{% if raw %}{{ post.body }}{% else %}{{ post.body_nomarkup }}{% endif %}</textarea>
</td>
</tr>
{% if ban_message_access %}
<tr>
<th>
{% trans %}Ban message{% endtrans %}
</th>
<td>
<textarea name="ban-message" id="ban-message" rows="4" cols="35">{{ post.modifiers['ban message'] }}</textarea>
</td>
</tr>
<tr>
<th>
{% trans %}Warn message{% endtrans %}
</th>
<td>
<textarea name="warn-message" id="warn-message" rows="4" cols="35">{{ post.modifiers['warning message'] }}</textarea>
</td>
</tr>
{% endif %}
</table>
<p style="text-align:center">
{% if raw %}
{% trans %}Currently editing raw HTML.{% endtrans %}
{% trans %}Currently editing raw HTML.{% endtrans %}
<a href="?/{{ board }}/edit/{{ post.id }}">{% trans %}Edit markup instead?{% endtrans %}</a>
{% else %}
<a href="?/{{ board }}/edit_raw/{{ post.id }}">{% trans %}Edit raw HTML instead?{% endtrans %}</a>