2015-08-04 19:03:44 +05:00
|
|
|
{{!
|
2015-08-05 16:45:16 +05:00
|
|
|
postform.mustache -- the form for posting
|
|
|
|
|
|
|
|
template parameters:
|
2015-08-04 19:03:44 +05:00
|
|
|
- post_url ( the url of the post form )
|
|
|
|
- reference ( the post we are replying to, or empty string if it's an op )
|
|
|
|
- button ( the text for the reply button )
|
2016-02-01 21:06:01 +05:00
|
|
|
- files ( bool, do we allow attachments ? )
|
2016-02-22 02:51:56 +05:00
|
|
|
- csrf ( csrf token )
|
2015-08-04 19:03:44 +05:00
|
|
|
}}
|
2017-01-12 19:24:51 +05:00
|
|
|
<form action="{{post_url}}" enctype="multipart/form-data" name="post" method="post" id="postform">
|
2016-02-22 02:51:56 +05:00
|
|
|
{{{csrf}}}
|
2016-04-30 21:25:15 +05:00
|
|
|
<input type="hidden" name="reference" value="{{reference}}" id="postform_reference"/>
|
2015-08-06 19:30:54 +05:00
|
|
|
<div id="postform-outer">
|
|
|
|
<div id="postform-inner">
|
|
|
|
<table class="postform">
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<th>
|
2016-02-28 17:40:16 +05:00
|
|
|
{{#i18n.Translations}}{{name}}{{/i18n.Translations}}
|
2015-08-06 19:30:54 +05:00
|
|
|
</th>
|
|
|
|
<td>
|
2016-05-03 21:17:08 +05:00
|
|
|
<span>
|
|
|
|
<input type="text" name="name" value="" id="postform_name" />
|
|
|
|
<span id="postform_msg"></span>
|
|
|
|
</span>
|
2016-05-01 01:03:39 +05:00
|
|
|
</td>
|
2015-08-06 19:30:54 +05:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>
|
2016-02-28 17:40:16 +05:00
|
|
|
{{#i18n.Translations}}{{subject}}{{/i18n.Translations}}
|
2015-08-06 19:30:54 +05:00
|
|
|
</th>
|
|
|
|
<td>
|
2016-05-01 19:42:06 +05:00
|
|
|
<input type="text" name="subject" value="" id="postform_subject" />
|
2016-05-01 01:03:39 +05:00
|
|
|
<input type="submit" value="{{button}}" class="button" id="postform_submit" />
|
2015-08-06 19:30:54 +05:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>
|
2016-02-28 17:40:16 +05:00
|
|
|
{{#i18n.Translations}}{{comment}}{{/i18n.Translations}}
|
2015-08-06 19:30:54 +05:00
|
|
|
</th>
|
|
|
|
<td>
|
2015-11-08 03:20:32 +05:00
|
|
|
<textarea id="postform_message" name="message" cols=40 rows=5></textarea>
|
2015-08-06 19:30:54 +05:00
|
|
|
</td>
|
|
|
|
</tr>
|
2019-03-02 20:21:45 +05:00
|
|
|
<tr>
|
|
|
|
<th>
|
|
|
|
Link URI
|
|
|
|
</th>
|
|
|
|
<td>
|
|
|
|
<input id="postform_uri" name="uri" value="" type="text" />
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
2016-02-01 21:06:01 +05:00
|
|
|
{{#files}}
|
2016-02-29 18:14:19 +05:00
|
|
|
<tr>
|
|
|
|
<th>
|
|
|
|
{{#i18n.Translations}}{{file}}{{/i18n.Translations}}
|
|
|
|
</th>
|
|
|
|
<td>
|
2016-02-29 18:35:26 +05:00
|
|
|
<input class="postform_attachment" id="postform_attachments" type="file" name="attachment_uploaded" multiple />
|
2015-08-06 19:30:54 +05:00
|
|
|
</td>
|
|
|
|
</tr>
|
2016-02-01 21:06:01 +05:00
|
|
|
{{/files}}
|
2017-03-30 17:51:59 +05:00
|
|
|
{{^DisableCaptcha}}
|
2015-08-06 19:30:54 +05:00
|
|
|
<tr>
|
|
|
|
<th>
|
2016-02-28 17:40:16 +05:00
|
|
|
{{#i18n.Translations}}{{captcha}}{{/i18n.Translations}}
|
2015-08-06 19:30:54 +05:00
|
|
|
</th>
|
|
|
|
<td>
|
2015-08-08 22:19:31 +05:00
|
|
|
<img id="captcha_img" src="{{prefix}}captcha/img" alt="captcha" />
|
2015-08-06 19:30:54 +05:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>
|
2016-02-28 17:40:16 +05:00
|
|
|
{{#i18n.Translations}}{{solution}}{{/i18n.Translations}}
|
2015-08-06 19:30:54 +05:00
|
|
|
</th>
|
|
|
|
<td>
|
2016-11-02 18:06:28 +05:00
|
|
|
<input type="text" name="captcha" autocomplete="off" id="captcha_solution" height="175" width="350"/>
|
2015-08-06 19:30:54 +05:00
|
|
|
</td>
|
|
|
|
</tr>
|
2017-03-30 17:51:59 +05:00
|
|
|
{{/DisableCaptcha}}
|
2017-01-12 19:24:51 +05:00
|
|
|
<tr>
|
2016-05-17 11:24:46 +05:00
|
|
|
<th>
|
2017-01-12 19:24:51 +05:00
|
|
|
<label id="censor-toggle" for="censor-tools">[censor tools]</label>
|
2016-05-17 11:24:46 +05:00
|
|
|
</th>
|
|
|
|
<td>
|
2017-01-12 19:24:51 +05:00
|
|
|
<input type="checkbox" id="censor-tools"><div style="display: none;">
|
|
|
|
<table>
|
|
|
|
<tbody>
|
|
|
|
<tr>
|
|
|
|
<th>
|
|
|
|
Actions:
|
|
|
|
</th>
|
|
|
|
<td>
|
|
|
|
<textarea cols=85 id="nntpchan_censor_actions"></textarea>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>
|
|
|
|
Secret:
|
|
|
|
</th>
|
|
|
|
<td>
|
|
|
|
<input type="password" id="nntp_censor_secret"></input>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<th>
|
2017-01-12 19:44:59 +05:00
|
|
|
<label onclick="nntpchan_submit_censor(document.getElementById('postform'), '{{post_url}}')">report</label>
|
2017-01-12 19:24:51 +05:00
|
|
|
</th>
|
|
|
|
<td>
|
|
|
|
<div id="nntpchan_censor_result"></div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2016-05-17 11:24:46 +05:00
|
|
|
</td>
|
2017-01-12 19:24:51 +05:00
|
|
|
</tr>
|
2015-08-06 19:30:54 +05:00
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-08-04 19:03:44 +05:00
|
|
|
</form>
|