summaryrefslogtreecommitdiff
path: root/templates/mod/warning_form.html
diff options
context:
space:
mode:
authorBenjamin Southall <applemansigloo@gmail.com>2018-04-20 06:48:31 +0900
committerBenjamin Southall <applemansigloo@gmail.com>2018-04-20 06:48:31 +0900
commit9ca35a7c4d039c2aa76f2bb64d54c02496e0bb84 (patch)
treee2a2fd0350f532dc41c3f6dac470fe7fcd165457 /templates/mod/warning_form.html
parent4c4101af016d67c4e7ecf6e64d74c772fa42e923 (diff)
Add missing moderation templates
Diffstat (limited to 'templates/mod/warning_form.html')
-rw-r--r--templates/mod/warning_form.html40
1 files changed, 40 insertions, 0 deletions
diff --git a/templates/mod/warning_form.html b/templates/mod/warning_form.html
new file mode 100644
index 00000000..b0a9d02b
--- /dev/null
+++ b/templates/mod/warning_form.html
@@ -0,0 +1,40 @@
+{% if post and board %}
+ {% set action = '?/' ~ board ~ '/warning/' ~ post %}
+{% else %}
+ {% set action = '?/warning' %}
+{% endif %}
+
+<form action="{{ action }}" method="post">
+ <input type="hidden" name="token" value="{{ token }}">
+ {% if redirect %}
+ <input type="hidden" name="redirect" value="{{ redirect|e }}">
+ {% endif %}
+ {% if thread %}
+ <input type="hidden" name="thread" value="{{ thread }}">
+ {% endif %}
+
+ <table>
+
+ <tr>
+ <th>
+ <label for="reason">{% trans 'Message' %}</label>
+ </th>
+ <td>
+ <input type="checkbox" id="public_message" name="public_message" checked>
+ <input type="text" name="message" id="message" size="35" maxlength="400" value="{{ config.mod.default_warning_message|e }}">
+ <span class="unimportant">({% trans 'public; attached to post' %})</span>
+ <script type="text/javascript">
+ document.getElementById('message').disabled = !document.getElementById('public_message').checked;
+ document.getElementById('public_message').onchange = function() {
+ document.getElementById('message').disabled = !this.checked;
+ }
+ </script>
+ </td>
+ </tr>
+ <tr>
+ <td></td>
+ <td><input name="new_warning" type="submit" value="{% trans 'New Warning' %}"></td>
+ </tr>
+ </table>
+</form>
+