The version of vichan running on lainchan.org
選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

196 行
8.0KB

  1. <form name="post" onsubmit="return dopost(this);" enctype="multipart/form-data" action="{{ config.post_url }}" method="post">
  2. {{ antibot.html() }}
  3. {% if id %}<input type="hidden" name="thread" value="{{ id }}">{% endif %}
  4. {{ antibot.html() }}
  5. {% if board.uri not in config.overboards|keys %}
  6. <input type="hidden" name="board" value="{{ board.uri }}">
  7. {% endif %}
  8. {{ antibot.html() }}
  9. {% if current_page %}
  10. <input type="hidden" name="page" value="{{ current_page }}">
  11. {% endif %}
  12. {% if mod %}<input type="hidden" name="mod" value="1">
  13. {% endif %}
  14. <table>
  15. {% if id %}<tr>
  16. <td colspan="2"><div class="banner">{% trans %}Posting mode: Reply{% endtrans %} <a class="unimportant" href="{{ return }}">[{% trans %}Return{% endtrans %}]</a></div></td>
  17. </tr>{% endif %}
  18. {% if not config.field_disable_name or (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri)) %}<tr>
  19. <th>
  20. {% trans %}Name{% endtrans %}
  21. {{ antibot.html() }}
  22. </th>
  23. <td>
  24. <input type="text" name="name" size="25" maxlength="35" autocomplete="off"> {% if config.allow_no_country and config.country_flags %}<input id="no_country" name="no_country" type="checkbox"> <label for="no_country">{% trans %}Don't show my flag{% endtrans %}</label>{% endif %}
  25. {{ antibot.html() }}
  26. </td>
  27. </tr>{% endif %}
  28. {% if not config.field_disable_email or (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri)) %}<tr>
  29. <th>
  30. {% trans %}Email{% endtrans %}
  31. {{ antibot.html() }}
  32. </th>
  33. <td>
  34. {% if config.field_email_selectbox %}
  35. <select name="email" id="email_selectbox" autocomplete="off">
  36. <option value=""></option>
  37. <option value="sage">sage</option>
  38. {% if not config.always_noko %}<option value="noko">noko</option>{% endif %}
  39. </select>
  40. {% else %}
  41. <input type="text" name="email" size="25" maxlength="40" autocomplete="off">
  42. {% endif %}
  43. {{ antibot.html() }}
  44. {% 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))) %}
  45. <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 %}<div id="spoilercontainer"> <input id="spoiler" name="spoiler" type="checkbox"> <label for="spoiler">{% trans %}Spoiler Image{% endtrans %}</label></div>{% endif %}
  46. {% endif %}
  47. {{ antibot.html() }}
  48. </td>
  49. </tr>{% endif %}
  50. {% 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>
  51. <th>
  52. {% trans %}Subject{% endtrans %}
  53. {{ antibot.html() }}
  54. </th>
  55. <td>
  56. <input style="float:left;" type="text" name="subject" size="25" maxlength="100" autocomplete="off">
  57. <input accesskey="s" style="margin-left:2px;" type="submit" name="post" value="{% if id %}{{ config.button_reply }}{% else %}{{ config.button_newtopic }}{% endif %}" />
  58. <input id="spoiler" name="spoiler" type="checkbox"><label for="spoiler">Spoiler Image</label>
  59. </td>
  60. </tr>
  61. {% endif %}
  62. {% if board.uri in config.overboards|keys %}
  63. <tr><th>Board</th><td>
  64. <select style="float: left; width: 185px;" name="board">
  65. {% for myboard in boards %}
  66. <option value="{{ myboard['uri'] }}">{{ myboard['uri'] }} ( {{ myboard['title'] }} )</option>
  67. {% endfor %}
  68. {{ antibot.html() }}
  69. </select></td></tr>
  70. {% endif %}
  71. {% if not config.field_disable_comment or (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri)) %}<tr>
  72. <th>
  73. {% trans %}Comment{% endtrans %}
  74. {{ antibot.html() }}
  75. </th>
  76. <td>
  77. <textarea name="body" id="body" rows="5" cols="35"></textarea>
  78. {{ antibot.html() }}
  79. {% 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))) %}
  80. {% if not (not config.field_disable_email or (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri))) %}
  81. <input accesskey="s" style="margin-left:2px;" type="submit" name="post" value="{% if id %}{{ config.button_reply }}{% else %}{{ config.button_newtopic }}{% endif %}" />
  82. <input id="spoiler" name="spoiler" type="checkbox"><label for="spoiler">Spoiler Image</label>
  83. {% endif %}
  84. {% endif %}
  85. </td>
  86. </tr>{% endif %}
  87. {% if config.recaptcha %}
  88. <tr>
  89. <th>
  90. {% trans %}Verification{% endtrans %}
  91. {{ antibot.html() }}
  92. </th>
  93. <td>
  94. <script type="text/javascript" src="//www.google.com/recaptcha/api/challenge?k={{ config.recaptcha_public }}"></script>
  95. {{ antibot.html() }}
  96. </td>
  97. </tr>
  98. {% endif %}
  99. {% if config.user_flag %}
  100. <tr>
  101. <th>{% trans %}Flag{% endtrans %}</th>
  102. <td>
  103. <select name="user_flag" id="user_flag">
  104. <option value="">{% trans %}None{% endtrans %}</option>
  105. {% for flag, text in config.user_flags %}
  106. <option value="{{ flag }}">{{ text }}</option>
  107. {% endfor %}
  108. </select>
  109. </td>
  110. </tr>
  111. {% endif %}
  112. {% if config.allowed_tags and not id %}
  113. <tr>
  114. <th>{% trans %}Tag{% endtrans %}</th>
  115. <td>
  116. <select name="tag">
  117. {% for id, tag in config.allowed_tags %}
  118. <option value="{{ id|e }}">{{ tag|e }}</option>
  119. {% endfor %}
  120. </select>
  121. </td>
  122. </tr>
  123. {% endif %}
  124. <tr id="upload">
  125. <th>
  126. {% trans %}File{% endtrans %}
  127. </th>
  128. <td>
  129. <input type="file" name="file" id="upload_file">
  130. <script type="text/javascript">if (typeof init_file_selector !== 'undefined') init_file_selector({{ config.max_images }});</script>
  131. {% if config.allow_upload_by_url %}
  132. <div style="float:none;text-align:left" id="upload_url">
  133. <label for="file_url">{% trans %}Or URL{% endtrans %}</label>:
  134. {% for counter in 1..config.max_images %}
  135. <input style="display:inline" type="text" id="file_url{{ counter }}" name="file_url{{ counter }}" size="35">
  136. </br>
  137. {% endfor %}
  138. </div>
  139. {% endif %}
  140. {{ antibot.html() }}
  141. </td>
  142. </tr>
  143. {% if config.enable_embedding %}
  144. <tr id="upload_embed">
  145. <th>
  146. {% trans %}Embed{% endtrans %}
  147. {{ antibot.html() }}
  148. </th>
  149. <td>
  150. <input type="text" name="embed" value="" size="30" maxlength="120" autocomplete="off">
  151. </td>
  152. </tr>
  153. {% endif %}
  154. {% if mod and ((not id and post.mod|hasPermission(config.mod.sticky, board.uri)) or (not id and post.mod|hasPermission(config.mod.lock, board.uri)) or post.mod|hasPermission(config.mod.rawhtml, board.uri)) %}
  155. <tr>
  156. <th>
  157. {% trans %}Flags{% endtrans %}
  158. </th>
  159. <td>
  160. {% if not id and post.mod|hasPermission(config.mod.sticky, board.uri) %}<div class="center">
  161. <label for="sticky">{% trans %}Sticky{% endtrans %}</label>
  162. <input title="{% trans %}Sticky{% endtrans %}" type="checkbox" name="sticky" id="sticky"><br>
  163. </div>{% endif %}
  164. {% if not id and post.mod|hasPermission(config.mod.lock, board.uri) %}<div class="center">
  165. <label for="lock">{% trans %}Lock{% endtrans %}</label><br>
  166. <input title="{% trans %}Lock{% endtrans %}" type="checkbox" name="lock" id="lock">
  167. </div>{% endif %}
  168. {% if post.mod|hasPermission(config.mod.rawhtml, board.uri) %}<div class="center">
  169. <label for="raw">{% trans %}Raw HTML{% endtrans %}</label><br>
  170. <input title="{% trans %}Raw HTML{% endtrans %}" type="checkbox" name="raw" id="raw">
  171. </div>{% endif %}
  172. </td>
  173. </tr>
  174. {% endif %}
  175. {% if not config.field_disable_password or (mod and post.mod|hasPermission(config.mod.bypass_field_disable, board.uri)) %}<tr>
  176. <th>
  177. {% trans %}Password{% endtrans %}
  178. {{ antibot.html() }}
  179. </th>
  180. <td>
  181. <input type="text" name="password" value="" size="12" maxlength="18" autocomplete="off">
  182. <span class="unimportant">{% trans %}(For file deletion.){% endtrans %}</span>
  183. {{ antibot.html() }}
  184. </td>
  185. </tr>{% endif %}
  186. </table>
  187. {{ antibot.html(true) }}
  188. <input type="hidden" name="hash" value="{{ antibot.hash() }}">
  189. </form>
  190. <script type="text/javascript">{% raw %}
  191. rememberStuff();
  192. {% endraw %}</script>