summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Ɓabanowski <marcin@6irc.net>2013-07-02 18:05:18 -0400
committerroot <root@vichan.6irc.us>2013-07-02 18:05:40 -0400
commit6961f5b8b5da98413468bb888eb24254e78970ae (patch)
tree450af7487253172b6654231acc45863bd9bc55e7
parentd134d2ae22e879becc9d5fc67d7ef63987c409b6 (diff)
post_form: move submit button upper when thread field is disabled
-rw-r--r--templates/post_form.html19
1 files changed, 11 insertions, 8 deletions
diff --git a/templates/post_form.html b/templates/post_form.html
index 1727250b..e5cb423c 100644
--- a/templates/post_form.html
+++ b/templates/post_form.html
@@ -24,24 +24,22 @@
<td>
<input type="text" name="email" size="25" maxlength="40" autocomplete="off">
{{ antibot.html() }}
+ {% if not (not (config.field_disable_subject or (id and config.field_disable_reply_subject)) or (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri))) %}
+ <input accesskey="s" style="margin-left:2px;" type="submit" name="post" value="{% if id %}{{ config.button_reply }}{% else %}{{ config.button_newtopic }}{% endif %}" />{% if config.spoiler_images %} <input id="spoiler" name="spoiler" type="checkbox"> <label for="spoiler">{% trans %}Spoiler Image{% endtrans %}</label>{% endif %}
+ {% endif %}
</td>
</tr>{% endif %}
- <tr>
- {% if not (config.field_disable_subject or (id and config.field_disable_reply_subject)) or (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri)) %}<th>
+ {% if not (config.field_disable_subject or (id and config.field_disable_reply_subject)) or (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri)) %}<tr>
+ <th>
{% trans %}Subject{% endtrans %}
{{ antibot.html() }}
</th>
<td>
<input style="float:left;" type="text" name="subject" size="25" maxlength="100" autocomplete="off">
- {% else %}<th>
- {% trans %}Submit{% endtrans %}
- {{ antibot.html() }}
- </th>
- <td>
- {% endif %}
<input accesskey="s" style="margin-left:2px;" type="submit" name="post" value="{% if id %}{{ config.button_reply }}{% else %}{{ config.button_newtopic }}{% endif %}" />{% if config.spoiler_images %} <input id="spoiler" name="spoiler" type="checkbox"> <label for="spoiler">{% trans %}Spoiler Image{% endtrans %}</label>{% endif %}
</td>
</tr>
+ {% endif %}
<tr>
<th>
{% trans %}Comment{% endtrans %}
@@ -50,6 +48,11 @@
<td>
<textarea name="body" id="body" rows="5" cols="35"></textarea>
{{ antibot.html() }}
+ {% if not (not (config.field_disable_subject or (id and config.field_disable_reply_subject)) or (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri))) %}
+ {% if not (not config.field_disable_email or (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri))) %}
+ <input accesskey="s" style="margin-left:2px;" type="submit" name="post" value="{% if id %}{{ config.button_reply }}{% else %}{{ config.button_newtopic }}{% endif %}" />{% if config.spoiler_images %} <input id="spoiler" name="spoiler" type="checkbox"> <label for="spoiler">{% trans %}Spoiler Image{% endtrans %}</label>{% endif %}
+ {% endif %}
+ {% endif %}
</td>
</tr>
{% if config.recaptcha %}