2015-03-11 11:04:31 +01:00
< div id = "post-form-outer" >
< div id = "post-form-inner" >
2013-08-02 05:31:35 +02:00
< form name = "post" onsubmit = "return dopost(this);" enctype = "multipart/form-data" action = "{{ config.post_url }}" method = "post" >
2012-04-12 09:20:49 +02:00
{% if id %}< input type = "hidden" name = "thread" value = "{{ id }}" > {% endif %}
< input type = "hidden" name = "board" value = "{{ board.uri }}" >
2013-08-03 23:42:34 +02:00
{% if current_page %}
< input type = "hidden" name = "page" value = "{{ current_page }}" >
{% endif %}
2012-04-12 09:20:49 +02:00
{% if mod %}< input type = "hidden" name = "mod" value = "1" > {% endif %}
2015-03-12 04:02:03 +01:00
< table class = "post-table" > < tbody >
2012-02-17 06:20:58 +01:00
{% if not config.field_disable_name or (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri)) %}< tr >
2011-11-23 11:18:06 +01:00
< th >
2015-03-11 11:04:31 +01:00
{% trans %}Name{% endtrans %}
2011-11-23 11:18:06 +01:00
< / th >
< td >
2015-02-19 01:55:48 +01:00
< input type = "text" name = "name" size = "25" maxlength = "35" autocomplete = "off" >
2011-11-23 11:18:06 +01:00
< / td >
2011-11-23 11:24:06 +01:00
< / tr > {% endif %}
2012-02-17 06:20:58 +01:00
{% if not config.field_disable_email or (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri)) %}< tr >
2011-11-23 11:18:06 +01:00
< th >
2015-03-11 11:04:31 +01:00
{% trans %}Email{% endtrans %}
2011-11-23 11:18:06 +01:00
< / th >
< td >
2015-02-17 01:33:52 +01:00
{% if config.field_email_selectbox and not (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri)) %}
2013-08-08 21:30:05 +02:00
< select name = "email" id = "email_selectbox" autocomplete = "off" >
< option value = "" > < / option >
< option value = "sage" > sage< / option >
2014-07-31 13:49:41 +02:00
{% if not config.always_noko %}< option value = "noko" > noko< / option > {% endif %}
2013-08-08 21:30:05 +02:00
< / select >
{% else %}
2012-04-12 09:20:49 +02:00
< input type = "text" name = "email" size = "25" maxlength = "40" autocomplete = "off" >
2013-07-03 00:05:18 +02:00
{% endif %}
2013-08-09 23:36:07 +02:00
{% 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))) %}
2015-03-11 00:18:28 +01:00
< input accesskey = "s" style = "margin-left:2px;" type = "submit" name = "post" value = "{% if id %}{{ config.button_reply }}{% else %}{{ config.button_newtopic }}{% endif %}" / >
2013-08-09 23:36:07 +02:00
{% endif %}
2011-11-23 11:18:06 +01:00
< / td >
2011-11-23 11:24:06 +01:00
< / tr > {% endif %}
2013-07-03 00:05:18 +02:00
{% 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 >
2015-03-11 11:04:31 +01:00
{% trans %}Subject{% endtrans %} {% if config.force_subject_op and not id %}< span class = "required-star" > *< / span > {% endif %}
2011-11-23 11:18:06 +01:00
< / th >
< td >
2012-04-12 09:20:49 +02:00
< input style = "float:left;" type = "text" name = "subject" size = "25" maxlength = "100" autocomplete = "off" >
2015-03-11 00:18:28 +01:00
< input accesskey = "s" style = "margin-left:2px;" type = "submit" name = "post" value = "{% if id %}{{ config.button_reply }}{% else %}{{ config.button_newtopic }}{% endif %}" / >
2011-11-23 11:18:06 +01:00
< / td >
< / tr >
2013-07-03 00:05:18 +02:00
{% endif %}
2011-11-23 11:18:06 +01:00
< tr >
< th >
2015-03-11 11:04:31 +01:00
{% trans %}Comment < span class = "required-star" > *< / span > {% endtrans %}
2011-11-23 11:18:06 +01:00
< / th >
< td >
< textarea name = "body" id = "body" rows = "5" cols = "35" > < / textarea >
2013-07-03 00:05:18 +02:00
{% 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 %}
2011-11-23 11:18:06 +01:00
< / td >
< / tr >
{% if config.recaptcha %}
< tr >
< th >
{% trans %}Verification{% endtrans %}
< / th >
< td >
2013-07-16 19:18:55 +02:00
< script type = "text/javascript" src = "//www.google.com/recaptcha/api/challenge?k={{ config.recaptcha_public }}" > < / script >
2011-11-23 11:18:06 +01:00
< / td >
< / tr >
{% endif %}
2014-04-19 22:11:34 +02:00
2015-03-06 11:03:43 +01:00
{% if config.captcha.enabled or (config.new_thread_capt and not id) %}
2014-11-14 15:09:52 +01:00
< tr class = 'captcha' >
< th >
{% trans %}Verification{% endtrans %}
< / th >
< td >
< script > load _captcha ( "{{ config.captcha.provider_get }}" , "{{ config.captcha.extra }}" ) ; < / script >
2015-03-06 11:03:43 +01:00
< 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 >
2014-11-14 15:09:52 +01:00
< / td >
< / tr >
{% endif %}
2013-10-28 00:27:23 +01:00
{% if not config.disable_images %}
2013-08-17 22:37:15 +02:00
< tr id = "upload" >
2011-11-23 11:18:06 +01:00
< th >
2015-03-11 11:04:31 +01:00
{% trans %}File{% endtrans %} {% if config.force_image_op and not id %}< span class = "required-star" > *< / span > {% endif %}
2011-11-23 11:18:06 +01:00
< / th >
< td >
2013-08-17 22:37:15 +02:00
< input type = "file" name = "file" id = "upload_file" >
2013-08-12 14:51:46 +02:00
{% if config.allow_upload_by_url %}
2013-08-17 22:37:15 +02:00
< div style = "float:none;text-align:left" id = "upload_url" >
2013-08-12 14:51:46 +02:00
< 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 %}
2011-11-23 11:18:06 +01:00
< / td >
< / tr >
2013-10-28 00:27:23 +01:00
{% endif %}
2015-03-11 11:04:31 +01:00
< tr >
< td class = "required-field-cell" >
2015-03-11 13:43:28 +01:00
< span class = "required-wrap hint" >
2015-03-11 11:04:31 +01:00
< span class = "required-star" > *< / span > < span class = "unimportant" > {% trans %}= required field{% endtrans %}< / span >
< / span >
< / td >
< td class = "show-options-cell" >
< a href = "#" class = "show-post-table-options" > [▶ {% trans %}Show post options & limits{% endtrans %}]< / a >
2015-03-11 13:43:28 +01:00
< strong class = "faq-message unimportant hint" > < br / > Confused? See the < a href = "/faq.html" > FAQ< / a > .< / strong >
2015-03-11 11:04:31 +01:00
< / td >
< / tr >
2015-03-12 04:02:03 +01:00
< / tbody > < / table >
< table class = "post-table-options" > < tbody >
2015-03-11 11:04:31 +01:00
{% if config.user_flag %}
< tr >
< th > {% trans %}Flag{% endtrans %}< / 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 %}
2011-11-23 11:18:06 +01:00
{% if config.enable_embedding %}
2013-08-17 22:37:15 +02:00
< tr id = "upload_embed" >
2011-11-23 11:18:06 +01:00
< th >
2015-03-11 11:04:31 +01:00
{% trans %}Embed{% endtrans %}
2011-11-23 11:18:06 +01:00
< / th >
< td >
2015-03-11 13:43:28 +01:00
< input type = "text" name = "embed" value = "" size = "30" maxlength = "120" autocomplete = "off" > < br > < span class = "unimportant hint" > {% trans %}(replaces files and can be used instead){% endtrans %}< / span >
2015-03-11 11:04:31 +01:00
< / td >
< / tr >
{% endif %}
{% if config.oekaki %}
< tr id = "oekaki" >
< th > {% trans %}Oekaki{% endtrans %}< / th >
< td >
< div class = "oekaki-applet" > < / div >
< a href = "#" onclick = "if (oekaki && !oekaki.initialized) { oekaki.init(); this.innerHTML = '{% trans %}Close oekaki applet{% endtrans %}' } else { oekaki.deinit(); this.innerHTML = '{% trans %}Show oekaki applet{% endtrans %}' }; return false;" > {% trans %}Show oekaki applet{% endtrans %}< / a >
< br / >
2015-03-11 13:43:28 +01:00
< span class = "unimportant hint" > {% trans %}(replaces files and can be used instead){% endtrans %}< / span >
2011-11-23 11:18:06 +01:00
< / td >
< / tr >
{% endif %}
2015-03-11 00:18:28 +01:00
< tr id = "options-row" >
2011-11-23 11:18:06 +01:00
< th >
2015-03-11 00:18:28 +01:00
{% trans %}Options{% endtrans %}
2011-11-23 11:18:06 +01:00
< / th >
< td >
2015-03-11 11:04:31 +01:00
< div class = "no-bump-option" >
< label > < input title = "No bump" id = "no-bump" name = "no-bump" type = "checkbox" >
2015-03-12 03:57:06 +01:00
{% trans %}Do not bump{% endtrans %}
< br / >
< span class = "unimportant hint" > {% trans %}(you can also write sage in the email field){% endtrans %}< / span > < / label >
2015-03-11 00:18:28 +01:00
< / div >
2015-03-11 11:04:31 +01:00
{% if config.spoiler_images %}< div class = "spoiler-images-option" >
< label > < input title = "Spoiler images" id = "spoiler" name = "spoiler" type = "checkbox" >
2015-03-12 03:57:06 +01:00
{% trans %}Spoiler images{% endtrans %}
< br / >
< span class = "unimportant hint" > {% trans %}(this replaces the thumbnails of your images with question marks){% endtrans %}< / label >
2015-02-19 01:55:48 +01:00
< / div > {% endif %}
2015-03-11 11:04:31 +01:00
{% if config.allow_no_country and config.country_flags %}< div class = "no-country-option" >
< label > < input title = "No country flag" id = "no_country" name = "no_country" type = "checkbox" >
2015-03-12 03:57:06 +01:00
{% trans %}Hide country{% endtrans %}
< br / >
< span class = "unimportant hint" > {% trans %}(this board displays your country when you post if this is unchecked){% endtrans %}< / span > < / label >
2015-03-11 00:18:28 +01:00
< / div > {% endif %}
2015-02-19 01:55:48 +01:00
{% if mod %}
2015-03-11 11:04:31 +01:00
{% if not id and post.mod|hasPermission(config.mod.sticky, board.uri) %}< div class = "sticky-option" >
< label > < input title = "{% trans %}Sticky{% endtrans %}" type = "checkbox" name = "sticky" id = "sticky" >
{% trans %}Sticky{% endtrans %}< / label >
2011-11-23 11:18:06 +01:00
< / div > {% endif %}
2015-03-11 11:04:31 +01:00
{% if not id and post.mod|hasPermission(config.mod.lock, board.uri) %}< div class = "lock-option" >
< label > < input title = "{% trans %}Lock{% endtrans %}" type = "checkbox" name = "lock" id = "lock" >
{% trans %}Lock{% endtrans %}< / label >
2011-11-23 11:18:06 +01:00
< / div > {% endif %}
2015-03-11 11:04:31 +01:00
{% if post.mod|hasPermission(config.mod.rawhtml, board.uri) %}< div class = "raw-html-option" >
< label > < input title = "{% trans %}Raw HTML{% endtrans %}" type = "checkbox" name = "raw" id = "raw" >
{% trans %}Raw HTML{% endtrans %}< / label >
< / div > {% endif %}
2015-03-12 00:16:35 +01:00
{% endif %}
2015-03-11 11:04:31 +01:00
{# Should always be at the end #}
{% if config.allow_roll %}< div class = "dice-option" >
< table >
< tr > < td > {% trans 'dice' %}< / td > < td > {% trans 'sides' %}< / td > < td > {% trans 'modifier' %}< / td > < / tr >
< tr > < td > < input class = "dx" name = "dx" min = "0" type = "number" > < / td > < td > < input class = "dy" name = "dy" min = "0" type = "number" > < / td > < td > < input class = "dz" name = "dz" type = "number" > < / td > < / tr >
< / table >
2011-11-23 11:18:06 +01:00
< / div > {% endif %}
< / td >
< / tr >
2012-02-17 06:20:58 +01:00
{% if not config.field_disable_password or (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri)) %}< tr >
2011-11-23 11:18:06 +01:00
< th >
{% trans %}Password{% endtrans %}
2015-03-11 11:04:31 +01:00
<!-- For Chrom(e|ium) -->
2014-04-10 11:01:37 +02:00
< input type = 'text' style = 'display: none' >
< input type = 'password' style = 'display: none' >
2011-11-23 11:18:06 +01:00
< / th >
< td >
2014-04-10 11:01:37 +02:00
< input type = "password" name = "password" value = "" size = "12" maxlength = "18" autocomplete = "off" >
2015-03-11 13:43:28 +01:00
< span class = "unimportant hint" > {% trans %}(For file and post deletion.){% endtrans %}< / span >
2011-11-23 11:18:06 +01:00
< / td >
2011-11-23 11:24:06 +01:00
< / tr > {% endif %}
2015-03-11 11:04:31 +01:00
< tr >
< td colspan = "2" >
< p class = "unimportant board-settings" >
{% if not config.disable_images %}
{% trans %}Allowed file types:{% endtrans %} {{ config.allowed_ext|join(', ') }}{% if config.allowed_ext_files %}, {{ config.allowed_ext_files|join(', ') }}{% endif %}< br / >
{% trans %}Max filesize is{% endtrans %} {{ config.max_filesize|filesize }}.< br / >
{% trans %}Max image dimensions are{% endtrans %} {{ config.max_height }} x {{ config.max_width }}.< br / >
{% set max_images = config.max_images %} {# workaround for "The text to be translated with "trans" can only contain references to simple variables" #}
{% trans %}You may upload {{ max_images }} per post.{% endtrans %}< br / >
{% endif %}
< / p >
< / td >
< / tr >
2015-03-12 04:02:03 +01:00
< / tbody > < / table >
2011-11-23 11:18:06 +01:00
< / form >
2015-03-11 11:04:31 +01:00
< / div >
< / div >
2011-11-23 11:18:06 +01:00
< script type = "text/javascript" > { % r a w % }
rememberStuff();
{% endraw %}< / script >