diff options
| author | Simon McFarlane <simon@piston.pw> | 2015-05-26 23:31:47 -0700 |
|---|---|---|
| committer | Simon McFarlane <simon@piston.pw> | 2015-05-29 01:34:53 -0700 |
| commit | 4b40f69a4e6d190f6d342875bd084c2a6c9d8b0f (patch) | |
| tree | fcc5dc9efa24afcb0bda3740b59f0c4e81c42f62 /templates/post_form.html | |
| parent | 2ac451ecb7aaae1ed1402425b8df6a5cb9831f2b (diff) | |
| parent | d20149b57929c27da87a7d9603d85717da15c5bc (diff) | |
Merge remote-tracking branch 'upstream/master' into vichan-merge
Diffstat (limited to 'templates/post_form.html')
| -rw-r--r-- | templates/post_form.html | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/templates/post_form.html b/templates/post_form.html index e9707cb9..c7a94f8b 100644 --- a/templates/post_form.html +++ b/templates/post_form.html @@ -95,13 +95,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"> - {% if config.spoiler_images %} <div id="spoilercontainer"><input id="spoiler" name="spoiler" type="checkbox"> <label for="spoiler">{% trans %}Spoiler?{% endtrans %}</label></div>{% endif %} + + <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>: @@ -147,14 +161,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> |
