83 lines
2.3 KiB
Plaintext
83 lines
2.3 KiB
Plaintext
{{!
|
|
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 )
|
|
}}
|
|
<form action="{{post_url}}" enctype="multipart/form-data" name="post" method="post">
|
|
{{{csrf}}}
|
|
<input type="hidden" name="reference" value="{{reference}}" />
|
|
<div id="postform-outer">
|
|
<div id="postform-inner">
|
|
<table class="postform">
|
|
<tbody>
|
|
<tr>
|
|
<th>
|
|
{{#i18n.Translations}}{{name}}{{/i18n.Translations}}
|
|
</th>
|
|
<td>
|
|
<input type="text" name="name" value="" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
{{#i18n.Translations}}{{subject}}{{/i18n.Translations}}
|
|
</th>
|
|
<td>
|
|
<input type="text" name="subject" value="" />
|
|
<input type="submit" value="{{button}}" class="button" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
{{#i18n.Translations}}{{comment}}{{/i18n.Translations}}
|
|
</th>
|
|
<td>
|
|
<textarea id="postform_message" name="message" cols=40 rows=5></textarea>
|
|
</td>
|
|
</tr>
|
|
{{#files}}
|
|
<tr>
|
|
<th>
|
|
{{#i18n.Translations}}{{file}}{{/i18n.Translations}}
|
|
</th>
|
|
<td>
|
|
<input id="postform_attachment" type="file" name="attachment" />
|
|
</td>
|
|
</tr>
|
|
{{/files}}
|
|
<tr>
|
|
<th>
|
|
{{#i18n.Translations}}{{dubs}}{{/i18n.Translations}}
|
|
</th>
|
|
<td>
|
|
<input type="checkbox" name="dubs" />
|
|
</td>
|
|
</tr>
|
|
<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" />
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
|