summaryrefslogtreecommitdiff
path: root/templates/post_form.html
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2016-02-09 12:37:03 +0100
committerczaks <marcin@6irc.net>2016-02-09 12:37:03 +0100
commitc53f13bf90716461780fef0a2b4b6e2b5b3cb002 (patch)
tree5cd18f303da0b0e6fdc87f175adf5f5f86d881e2 /templates/post_form.html
parentfe66c51a19920378885fb790d341cc50c933b046 (diff)
parent028fd3df15b2e2edc96c5b84156b0b039ea16562 (diff)
Merge branch 'master' of https://github.com/vichan-devel/vichan
Diffstat (limited to 'templates/post_form.html')
-rw-r--r--templates/post_form.html22
1 files changed, 16 insertions, 6 deletions
diff --git a/templates/post_form.html b/templates/post_form.html
index 1846adb5..0e0d3fed 100644
--- a/templates/post_form.html
+++ b/templates/post_form.html
@@ -92,12 +92,27 @@
</td>
</tr>
{% endif %}
+ {% if config.allowed_tags and not id %}
+ <tr>
+ <th>{% trans %}Tag{% endtrans %}</th>
+ <td>
+ <select name="tag">
+ {% for id, tag in config.allowed_tags %}
+ <option value="{{ id|e }}">{{ tag|e }}</option>
+ {% endfor %}
+ </select>
+ </td>
+ </tr>
+ {% endif %}
<tr id="upload">
<th>
{% trans %}File{% endtrans %}
</th>
<td>
<input type="file" name="file" id="upload_file">
+
+ <script type="text/javascript">if (typeof init_file_selector !== 'undefined') init_file_selector({{ config.max_images }});</script>
+
{% 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>:
@@ -143,14 +158,9 @@
<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">
+ <input type="text" name="password" value="" size="12" maxlength="18" autocomplete="off">
<span class="unimportant">{% trans %}(For file deletion.){% endtrans %}</span>
{{ antibot.html() }}
</td>