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/default/postform.mustache

81 lines
1.9 KiB
Plaintext
Raw Normal View History

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 ? )
2015-08-04 19:03:44 +05:00
}}
<form action="{{post_url}}" enctype="multipart/form-data" name="post" method="post">
<input type="hidden" name="reference" value="{{reference}}" />
<div id="postform-outer">
<div id="postform-inner">
<table class="postform">
<tbody>
<tr>
<th>
Name
</th>
<td>
<input type="text" name="name" value="" />
</td>
</tr>
<tr>
<th>
Subject
</th>
<td>
<input type="text" name="subject" value="" />
<input type="submit" value="{{button}}" class="button" />
</td>
</tr>
<tr>
<th>
Comment
</th>
<td>
2015-11-08 03:20:32 +05:00
<textarea id="postform_message" name="message" cols=40 rows=5></textarea>
</td>
</tr>
2016-02-01 21:06:01 +05:00
{{#files}}
<tr>
<th>
File
</th>
<td>
2015-11-20 06:20:57 +05:00
<input id="postform_attachment" type="file" name="attachment" />
</td>
</tr>
2016-02-01 21:06:01 +05:00
{{/files}}
2015-11-09 23:59:54 +05:00
<tr>
2016-02-01 21:06:01 +05:00
<th>
2015-11-09 23:59:54 +05:00
Get Dubs
</th>
<td>
<input type="checkbox" name="dubs" />
</td>
</tr>
<tr>
<th>
Captcha
</th>
<td>
2015-08-08 22:19:31 +05:00
<img id="captcha_img" src="{{prefix}}captcha/img" alt="captcha" />
</td>
</tr>
<tr>
<th>
Solution
</th>
<td>
2015-08-08 23:21:40 +05:00
<input type="text" name="captcha" />
</td>
</tr>
</tbody>
</table>
</div>
</div>
2015-08-04 19:03:44 +05:00
</form>
2015-11-08 03:20:32 +05:00