Add ['overboard_post_form'] to allow overboard post forms. Adjustments to ukko theme to support this

This commit is contained in:
Benjamin Southall 2017-04-25 00:47:14 +09:00
parent aa8eb39dab
commit 19c0f384a5
4 changed files with 21 additions and 5 deletions

View file

@ -2,7 +2,9 @@
{{ antibot.html() }}
{% if id %}<input type="hidden" name="thread" value="{{ id }}">{% endif %}
{{ antibot.html() }}
{% if board.uri not in config.overboards|keys %}
<input type="hidden" name="board" value="{{ board.uri }}">
{% endif %}
{{ antibot.html() }}
{% if current_page %}
<input type="hidden" name="page" value="{{ current_page }}">
@ -56,6 +58,14 @@
</td>
</tr>
{% endif %}
{% if board.uri in config.overboards|keys %}
<tr><th>Board</th><td>
<select style="float: left; width: 185px;" name="board">
{% for myboard in boards %}
<option value="{{ myboard['uri'] }}">{{ myboard['uri'] }} ( {{ myboard['title'] }} )</option>
{% endfor %}
</select></td></tr>
{% endif %}
{% if not config.field_disable_comment or (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri)) %}<tr>
<th>
{% trans %}Comment{% endtrans %}