Archived
1
0
This repository has been archived on 2023-08-12. You can view files and clone it, but cannot push or open issues or pull requests.
nntpchan/contrib/templates/placebo/postform.mustache

70 lines
2.7 KiB
Plaintext
Raw Normal View History

2017-04-19 04:42:46 +05:00
{{!
postform.mustache -- the form for posting
template parameters:
- 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 )
- files ( bool, do we allow attachments ? )
- csrf ( csrf token )
}}
<div class="postform" align="center">
<form method="POST" action="{{post_url}}" enctype="multipart/form-data">
<input type="hidden" name="reference" value="{{reference}}" id="postform_reference"/>
<table cellspacing="1" cellpadding="0">
<tr>
2017-10-10 21:34:39 +05:00
<th>{{#i18n.Translations}}{{name}}{{/i18n.Translations}}</th>
2017-04-19 04:42:46 +05:00
<td><input type="text" name="name" class="posttext" /></td>
</tr>
<tr>
2017-10-10 21:34:39 +05:00
<th>{{#i18n.Translations}}{{subject}}{{/i18n.Translations}}</th>
2017-04-19 04:42:46 +05:00
<td><input type="text" name="subject" class="posttext" /></td>
</tr>
<tr>
2017-10-10 21:34:39 +05:00
<th>{{#i18n.Translations}}{{comment}}{{/i18n.Translations}}</th>
2017-04-19 16:27:40 +05:00
<td><textarea id="comment" name="message" class="postarea"></textarea></td>
2017-04-19 04:42:46 +05:00
</tr>
2019-03-02 20:24:18 +05:00
<tr>
<th>
Link URI
</th>
<td>
2019-03-02 20:25:06 +05:00
<input class="posttext" id="postform_uri" name="uri" value="" type="text" />
2019-03-02 20:24:18 +05:00
</td>
</tr>
2017-08-13 03:19:49 +05:00
{{^DisableCaptcha}}
<tr>
<th>
{{#i18n.Translations}}{{captcha}}{{/i18n.Translations}}
</th>
<td>
<img id="captcha_img" src="{{prefix}}captcha/img" alt="captcha" />
</td>
</tr>
<tr>
<th>
{{#i18n.Translations}}{{solution}}{{/i18n.Translations}}
</th>
<td>
<input type="text" name="captcha" autocomplete="off" id="captcha_solution" height="175" width="350"/>
</td>
</tr>
{{/DisableCaptcha}}
2017-04-19 04:42:46 +05:00
<tr>
2017-10-10 21:34:39 +05:00
<th>{{#i18n.Translations}}{{file}}{{/i18n.Translations}}</th>
2017-04-19 04:42:46 +05:00
<td>
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
2018-05-03 02:50:33 +05:00
{{#files}}
2017-04-19 04:52:10 +05:00
<td><input type="file" name="attachment_uploaded" class="postfile" multiple /></td>
2018-05-03 02:50:33 +05:00
{{/files}}
2017-04-19 04:42:46 +05:00
<td align="right"><input type="submit" value="{{button}}" class="postbutton"/></td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</div>