1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-12-15 09:01:21 +01:00
vichan/templates/mod/banners.html

29 lines
917 B
HTML
Raw Normal View History

2014-09-23 21:49:52 +02:00
<script type="text/javascript" src="js/jquery.min.js"></script>
<div style="text-align:center">
<form action="{{ action }}" method="post" enctype="multipart/form-data">
<input type="hidden" name="token" value="{{ token }}">
<h2>Upload banner</h2>
<p><input type="file" name="file"></p>
<p><small>Banners must be &lt; 500KB and have image dimensions 300px x 100px.<br/>A maximum of fifty custom banners per board is enforced.</small></p>
2014-09-23 21:49:52 +02:00
<p><input type="submit" value="Upload"></p>
</form>
<hr>
<h2>Banners already in use</h2>
<form action="{{ action }}" method="post">
<input type="hidden" name="token" value="{{ token }}">
<table>
<tbody>
{% for banner in banners %}
<tr>
<td><input name="delete[]" type="checkbox" value="{{banner}}"></td><td><img src="static/banners/{{board.uri}}/{{banner}}"></td>
</tr>
{% endfor %}
</tbody>
</table>
<p><input type="submit" value="Delete selected"></p>
</form>
</div>