diff options
| author | Simon McFarlane <simon@piston.pw> | 2015-06-01 16:08:19 -0700 |
|---|---|---|
| committer | Simon McFarlane <simon@piston.pw> | 2015-06-01 16:08:19 -0700 |
| commit | 209bc5400144e448e95a68e01d842c6fab53ae71 (patch) | |
| tree | ab4cc6ad241e8daccb546514330d3a5f2906e846 /templates/post_form.html | |
| parent | d1c1e5a589f30d640f5eb6303e7059105a6297f8 (diff) | |
| parent | 7ab9cc43d101ed002bce392beefe1c435ab2d5b1 (diff) | |
Merge pull request #18 from lainchan/vichan-merge
Merge with the latest upstream vichan
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> |
