2011-11-23 05:18:06 -05:00
|
|
|
<form name="post" onsubmit="return dopost(this);" enctype="multipart/form-data" action="{{ config.post_url }}" method="post">
|
2012-01-19 10:37:53 -05:00
|
|
|
{{ createHiddenInputs([board.uri, id]) }}
|
2011-11-23 05:18:06 -05:00
|
|
|
{% if id %}<input type="hidden" name="thread" value="{{ id }}" />{% endif %}
|
|
|
|
<input type="hidden" name="board" value="{{ board.uri }}" />
|
|
|
|
{% if mod %}<input type="hidden" name="mod" value="1" />{% endif %}
|
|
|
|
<table>
|
2012-02-16 07:07:25 -05:00
|
|
|
{% if not config.field_disable_name or post.mod|hasPermission(config.mod.bypass_field_disable, board.uri) %}<tr>
|
2011-11-23 05:18:06 -05:00
|
|
|
<th>
|
|
|
|
{% trans %}Name{% endtrans %}
|
|
|
|
</th>
|
|
|
|
<td>
|
|
|
|
<input type="text" name="name" size="25" maxlength="50" autocomplete="off" />
|
|
|
|
</td>
|
2011-11-23 05:24:06 -05:00
|
|
|
</tr>{% endif %}
|
2012-02-16 07:07:25 -05:00
|
|
|
{% if not config.field_disable_email or post.mod|hasPermission(config.mod.bypass_field_disable, board.uri) %}<tr>
|
2011-11-23 05:18:06 -05:00
|
|
|
<th>
|
|
|
|
{% trans %}Email{% endtrans %}
|
|
|
|
</th>
|
|
|
|
<td>
|
|
|
|
<input type="text" name="email" size="25" maxlength="40" autocomplete="off" />
|
|
|
|
</td>
|
2011-11-23 05:24:06 -05:00
|
|
|
</tr>{% endif %}
|
2011-11-23 05:18:06 -05:00
|
|
|
<tr>
|
|
|
|
<th>
|
|
|
|
{% trans %}Subject{% endtrans %}
|
|
|
|
</th>
|
|
|
|
<td>
|
|
|
|
<input style="float:left;" type="text" name="subject" size="25" maxlength="100" autocomplete="off" />
|
|
|
|
<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>
|
|
|
|
<tr>
|
|
|
|
<th>
|
|
|
|
{% trans %}Comment{% endtrans %}
|
|
|
|
</th>
|
|
|
|
<td>
|
|
|
|
<textarea name="body" id="body" rows="5" cols="35"></textarea>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% if config.recaptcha %}
|
|
|
|
<tr>
|
|
|
|
<th>
|
|
|
|
{% trans %}Verification{% endtrans %}
|
|
|
|
</th>
|
|
|
|
<td>
|
|
|
|
<script type="text/javascript" src="http://www.google.com/recaptcha/api/challenge?k={{ config.recaptcha_public }}"></script>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endif %}
|
|
|
|
<tr>
|
|
|
|
<th>
|
|
|
|
{% trans %}File{% endtrans %}
|
|
|
|
</th>
|
|
|
|
<td>
|
|
|
|
<input type="file" name="file" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% if config.enable_embedding %}
|
|
|
|
<tr>
|
|
|
|
<th>
|
|
|
|
{% trans %}Embed{% endtrans %}
|
|
|
|
</th>
|
|
|
|
<td>
|
|
|
|
<input type="text" name="embed" size="30" maxlength="120" autocomplete="off" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endif %}
|
|
|
|
{% if mod %}
|
|
|
|
<tr>
|
|
|
|
<th>
|
|
|
|
{% trans %}Flags{% endtrans %}
|
|
|
|
</th>
|
|
|
|
<td>
|
2011-11-23 05:28:59 -05:00
|
|
|
{% if not id and post.mod|hasPermission(config.mod.sticky, board.uri) %}<div>
|
2011-11-23 05:18:06 -05:00
|
|
|
<label for="sticky">{% trans %}Sticky{% endtrans %}</label>
|
|
|
|
<input title="{% trans %}Sticky{% endtrans %}" type="checkbox" name="sticky" id="sticky" /><br />
|
|
|
|
</div>{% endif %}
|
2011-11-23 05:28:59 -05:00
|
|
|
{% if not id and post.mod|hasPermission(config.mod.lock, board.uri) %}<div>
|
2011-11-23 05:18:06 -05:00
|
|
|
<label for="lock">{% trans %}Lock{% endtrans %}</label><br />
|
|
|
|
<input title="{% trans %}Lock{% endtrans %}" type="checkbox" name="lock" id="lock" />
|
|
|
|
</div>{% endif %}
|
2011-11-23 05:28:59 -05:00
|
|
|
{% if post.mod|hasPermission(config.mod.rawhtml, board.uri) %}<div>
|
2011-11-23 05:18:06 -05:00
|
|
|
<label for="raw">{% trans %}Raw HTML{% endtrans %}</label><br />
|
|
|
|
<input title="{% trans %}Raw HTML{% endtrans %}" type="checkbox" name="raw" id="raw" />
|
|
|
|
</div>{% endif %}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endif %}
|
2012-02-16 07:07:25 -05:00
|
|
|
{% if not config.field_disable_password or post.mod|hasPermission(config.mod.bypass_field_disable, board.uri) %}<tr>
|
2011-11-23 05:18:06 -05:00
|
|
|
<th>
|
|
|
|
{% trans %}Password{% endtrans %}
|
|
|
|
</th>
|
|
|
|
<td>
|
|
|
|
<input type="password" name="password" size="12" maxlength="18" autocomplete="off" />
|
|
|
|
<span class="unimportant">{% trans %}(For file deletion.){% endtrans %}</span>
|
|
|
|
</td>
|
2011-11-23 05:24:06 -05:00
|
|
|
</tr>{% endif %}
|
2011-11-23 05:18:06 -05:00
|
|
|
</table>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<script type="text/javascript">{% raw %}
|
|
|
|
rememberStuff();
|
|
|
|
{% endraw %}</script>
|