summaryrefslogtreecommitdiff
path: root/templates/post_form.html
diff options
context:
space:
mode:
authorBenjamin Southall <applemansigloo@gmail.com>2017-04-25 00:47:14 +0900
committerBenjamin Southall <applemansigloo@gmail.com>2017-04-25 00:47:14 +0900
commita16122329f77e60568ac2400af9ed00829c31990 (patch)
tree8ba87b5c91ed47739375ebcc68f05d844de3bbfc /templates/post_form.html
parentbea631d3f5e7d533185187e284cd392da73de325 (diff)
Add ['overboard_post_form'] to allow overboard post forms. Adjustments to ukko theme to support this
Diffstat (limited to 'templates/post_form.html')
-rw-r--r--templates/post_form.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/templates/post_form.html b/templates/post_form.html
index 0d6b388b..528f9794 100644
--- a/templates/post_form.html
+++ b/templates/post_form.html
@@ -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 %}