Add missing moderation templates

This commit is contained in:
Benjamin Southall 2018-04-20 06:48:31 +09:00
parent 4c4101af01
commit 9ca35a7c4d
3 changed files with 81 additions and 0 deletions

View File

@ -0,0 +1 @@
<link rel="stylesheet" media="screen" href="{{ config.uri_stylesheets }}mod/mod.css" />

40
templates/mod/merge.html Normal file
View File

@ -0,0 +1,40 @@
<form action="?/{{ board }}/merge/{{ post }}" method="post">
<input type="hidden" name="token" value="{{ token }}">
<table>
<tr>
<th>
{% trans 'Thread ID' %}
</th>
<td>
&gt;&gt;&gt;{{ config.board_abbreviation|sprintf(board) }}{{ post }}
</td>
</tr>
<tr>
<th>{% trans 'Target board' %}</th>
<td>
<ul style="list-style:none;padding:0">
{% for targetboard in boards %}
<li>
<input type="radio" name="board" value="{{ targetboard.uri }}" id="ban-board-{{ targetboard.uri }}" {% if boards|count == 2 %}checked{% endif %}>
<label style="display:inline" for="ban-board-{{ targetboard.uri }}">
{{ config.board_abbreviation|sprintf(targetboard.uri) }} - {{ targetboard.title|e }}
</label>
</li>
{% endfor %}
</ul>
</td>
</tr>
<tr>
<th>{% trans 'Target thread' %}</th>
<td>
<p>Please specify the thread you want to merge the thread with, if you specify a post, the thread of that post will be used.:</p>
<input type="text" name="target_thread"/>
</td>
</tr>
</table>
<ul style="padding:0;text-align:center;list-style:none">
<li><input type="submit" value="{% trans 'Merge thread' %}"></li>
</ul>
</form>

View File

@ -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>