mirror of
https://github.com/vichan-devel/vichan.git
synced 2025-01-31 20:25:32 +01:00
216 lines
9.7 KiB
HTML
216 lines
9.7 KiB
HTML
<form name="post" onsubmit="return dopost(this);" enctype="multipart/form-data" action="{{ config.post_url }}" method="post">
|
|
{{ antibot.html() }}
|
|
{% if id %}<input type="hidden" name="thread" value="{{ id }}">{% endif %}
|
|
{{ antibot.html() }}
|
|
<input type="hidden" name="board" value="{{ board.uri }}">
|
|
{{ antibot.html() }}
|
|
{% if current_page %}
|
|
<input type="hidden" name="page" value="{{ current_page }}">
|
|
{% endif %}
|
|
{% if mod %}<input type="hidden" name="mod" value="1">{% endif %}
|
|
<table>
|
|
{% if not config.field_disable_name or (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri)) %}<tr>
|
|
<th>
|
|
{% trans %}Name{% endtrans %} <span class="unimportant optional-text">{% trans %}(optional){% endtrans %}</span>
|
|
{{ antibot.html() }}
|
|
</th>
|
|
<td>
|
|
<input type="text" name="name" size="25" maxlength="35" autocomplete="off">
|
|
{{ antibot.html() }}
|
|
</td>
|
|
</tr>{% endif %}
|
|
{% if not config.field_disable_email or (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri)) %}<tr>
|
|
<th>
|
|
{% trans %}Email{% endtrans %} <span class="unimportant optional-text">{% trans %}(optional){% endtrans %}</span>
|
|
{{ antibot.html() }}
|
|
</th>
|
|
<td>
|
|
{% if config.field_email_selectbox and not (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri)) %}
|
|
<select name="email" id="email_selectbox" autocomplete="off">
|
|
<option value=""></option>
|
|
<option value="sage">sage</option>
|
|
{% if not config.always_noko %}<option value="noko">noko</option>{% endif %}
|
|
</select>
|
|
{% else %}
|
|
<input type="text" name="email" size="25" maxlength="40" autocomplete="off">
|
|
{% endif %}
|
|
{{ 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 %}" />
|
|
{% endif %}
|
|
{{ antibot.html() }}
|
|
</td>
|
|
</tr>{% endif %}
|
|
{% 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 %} {% if not config.force_subject_op or id %}<span class="unimportant optional-text">{% trans %}(optional){% endtrans %}</span>{% endif %}
|
|
{{ antibot.html() }}
|
|
</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 %}" />
|
|
</td>
|
|
</tr>
|
|
{% endif %}
|
|
<tr>
|
|
<th>
|
|
{% trans %}Comment{% endtrans %}
|
|
{{ antibot.html() }}
|
|
</th>
|
|
<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 %}
|
|
<tr>
|
|
<th>
|
|
{% trans %}Verification{% endtrans %}
|
|
{{ antibot.html() }}
|
|
</th>
|
|
<td>
|
|
<script type="text/javascript" src="//www.google.com/recaptcha/api/challenge?k={{ config.recaptcha_public }}"></script>
|
|
{{ antibot.html() }}
|
|
</td>
|
|
</tr>
|
|
{% endif %}
|
|
|
|
{% if config.captcha.enabled or (config.new_thread_capt and not id) %}
|
|
<tr class='captcha'>
|
|
<th>
|
|
{% trans %}Verification{% endtrans %}
|
|
</th>
|
|
<td>
|
|
<script>load_captcha("{{ config.captcha.provider_get }}", "{{ config.captcha.extra }}");</script>
|
|
<noscript>You seem to have JavaScript disabled. To complete the CAPTCHA,<br><a href="{{ config.captcha.provider_get }}?mode=get&extra={{ config.captcha.extra }}&nojs=true" target="_blank">open this link in a new tab</a> and put the result in the boxes below:
|
|
<br>
|
|
ID: <input class="captcha_cookie" type="text" name="captcha_cookie" size="25" autocomplete="off"><br>
|
|
Answer: <input class="captcha_text" type="text" name="captcha_text" size="25" maxlength="6" autocomplete="off">
|
|
</noscript>
|
|
</td>
|
|
</tr>
|
|
{% endif %}
|
|
|
|
{% if config.user_flag %}
|
|
<tr>
|
|
<th>{% trans %}Flag{% endtrans %} <span class="unimportant optional-text">{% trans %}(optional){% endtrans %}</span></th>
|
|
<td>
|
|
<select name="user_flag" id="user_flag">
|
|
<option value="">{% trans %}None{% endtrans %}</option>
|
|
{% for flag, text in config.user_flags %}
|
|
<option value="{{ flag }}">{{ text }}</option>
|
|
{% endfor %}
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
{% endif %}
|
|
|
|
{% if not config.disable_images %}
|
|
<tr id="upload">
|
|
<th>
|
|
{% trans %}File{% endtrans %} {% if not config.force_image_op or id %}<span class="unimportant optional-text">{% trans %}(optional){% endtrans %}</span>{% endif %}
|
|
</th>
|
|
<td>
|
|
<input type="file" name="file" id="upload_file">
|
|
{% if config.allow_upload_by_url %}
|
|
<div style="float:none;text-align:left" id="upload_url">
|
|
<label for="file_url">{% trans %}Or URL{% endtrans %}</label>:
|
|
<input style="display:inline" type="text" id="file_url" name="file_url" size="35">
|
|
</div>
|
|
{% endif %}
|
|
{{ antibot.html() }}
|
|
</td>
|
|
</tr>
|
|
{% endif %}
|
|
{% if config.enable_embedding %}
|
|
<tr id="upload_embed">
|
|
<th>
|
|
{% trans %}Embed{% endtrans %} {% if not config.force_image_op or id %}<span class="unimportant optional-text">{% trans %}(optional){% endtrans %}</span>{% else %}<span class="unimportant optional-text">{% trans %}(or file){% endtrans %}</span>{% endif %}
|
|
{{ antibot.html() }}
|
|
</th>
|
|
<td>
|
|
<input type="text" name="embed" value="" size="30" maxlength="120" autocomplete="off">
|
|
</td>
|
|
</tr>
|
|
{% endif %}
|
|
<tr id="options-row">
|
|
<th>
|
|
{% trans %}Options{% endtrans %}
|
|
</th>
|
|
<td>
|
|
<div class="center no-bump-option">
|
|
<label for="no-bump">{% trans %}No bump{% endtrans %}</label>
|
|
<input title="No bump" id="no-bump" name="no-bump" type="checkbox">
|
|
</div>
|
|
|
|
{% if config.spoiler_images %}<div class="center spoiler-images-option">
|
|
<label for="spoiler">{% trans %}Spoiler images{% endtrans %}</label>
|
|
<input title="Spoiler images" id="spoiler" name="spoiler" type="checkbox">
|
|
</div>{% endif %}
|
|
|
|
{% if config.allow_no_country and config.country_flags %}<div class="center no-country-option">
|
|
<label for="no_country">{% trans %}No country flag{% endtrans %}</label>
|
|
<input title="No country flag" id="no_country" name="no_country" type="checkbox">
|
|
</div>{% endif %}
|
|
|
|
{% if config.allow_roll %}<div class="center dice-option">
|
|
<label for="dy">{% trans %}Dice{% endtrans %}</label>
|
|
<div><input class="dx" name="dx" type="number">d<input class="dy" name="dy" type="number">±<input class="dz" name="dz" type="number"></div>
|
|
</div>{% endif %}
|
|
|
|
{% if mod %}
|
|
{% if not id and post.mod|hasPermission(config.mod.sticky, board.uri) %}<div class="center sticky-option">
|
|
<label for="sticky">{% trans %}Sticky{% endtrans %}</label>
|
|
<input title="{% trans %}Sticky{% endtrans %}" type="checkbox" name="sticky" id="sticky">
|
|
</div>{% endif %}
|
|
{% if not id and post.mod|hasPermission(config.mod.lock, board.uri) %}<div class="center lock-option">
|
|
<label for="lock">{% trans %}Lock{% endtrans %}</label><br>
|
|
<input title="{% trans %}Lock{% endtrans %}" type="checkbox" name="lock" id="lock">
|
|
</div>{% endif %}
|
|
{% if post.mod|hasPermission(config.mod.rawhtml, board.uri) %}<div class="center raw-html-option">
|
|
<label for="raw">{% trans %}Raw HTML{% endtrans %}</label><br>
|
|
<input title="{% trans %}Raw HTML{% endtrans %}" type="checkbox" name="raw" id="raw">
|
|
</div>{% endif %}
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
{% if not config.field_disable_password or (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri)) %}<tr>
|
|
<th>
|
|
{% trans %}Password{% endtrans %}
|
|
{{ antibot.html() }}
|
|
<!-- Chrome, you suck so hard with your autofill mechanism -->
|
|
<!-- I tried N different tricks, this sucks most, but only this one -->
|
|
<!-- disables autofill successfully -->
|
|
<input type='text' style='display: none'>
|
|
<input type='password' style='display: none'>
|
|
</th>
|
|
<td>
|
|
<input type="password" name="password" value="" size="12" maxlength="18" autocomplete="off">
|
|
<span class="unimportant">{% trans %}(For file deletion.){% endtrans %}</span>
|
|
{{ antibot.html() }}
|
|
</td>
|
|
</tr>{% endif %}
|
|
</table>
|
|
{{ antibot.html(true) }}
|
|
<input type="hidden" name="hash" value="{{ antibot.hash() }}">
|
|
</form>
|
|
|
|
<script type="text/javascript">{% raw %}
|
|
rememberStuff();
|
|
{% endraw %}</script>
|
|
|
|
<p class="unimportant board-settings">
|
|
{% if not config.disable_images %}
|
|
Allowed file types: {{ config.allowed_ext|join(', ') }}{% if config.allowed_ext_files %}, {{ config.allowed_ext_files|join(', ') }}{% endif %}<br />
|
|
Max filesize is {{ config.max_filesize|filesize }}.<br />
|
|
Max image dimensions are {{ config.max_height }} x {{ config.max_width }}.<br />
|
|
You may upload {{ config.max_images }} per post.<br />
|
|
{% endif %}
|
|
<strong class="faq-message"><br />Confused? See the <a href="/faq.html">FAQ</a>.</strong>
|
|
</p>
|