Archived
1
0

add no attachments detection

This commit is contained in:
Jeff Becker 2016-02-01 11:06:01 -05:00
parent c0d5800bd4
commit c169616471
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B

View File

@ -5,6 +5,7 @@
- post_url ( the url of the post form ) - post_url ( the url of the post form )
- reference ( the post we are replying to, or empty string if it's an op ) - reference ( the post we are replying to, or empty string if it's an op )
- button ( the text for the reply button ) - button ( the text for the reply button )
- files ( bool, do we allow attachments ? )
}} }}
<form action="{{post_url}}" enctype="multipart/form-data" name="post" method="post"> <form action="{{post_url}}" enctype="multipart/form-data" name="post" method="post">
<input type="hidden" name="reference" value="{{reference}}" /> <input type="hidden" name="reference" value="{{reference}}" />
@ -37,6 +38,7 @@
<textarea id="postform_message" name="message" cols=40 rows=5></textarea> <textarea id="postform_message" name="message" cols=40 rows=5></textarea>
</td> </td>
</tr> </tr>
{{#files}}
<tr> <tr>
<th> <th>
File File
@ -45,6 +47,7 @@
<input id="postform_attachment" type="file" name="attachment" /> <input id="postform_attachment" type="file" name="attachment" />
</td> </td>
</tr> </tr>
{{/files}}
<tr> <tr>
<th> <th>
Get Dubs Get Dubs