nekrochan/templates/staff/banners.html

46 řádky
1.4 KiB
HTML
Spustitelný soubor

{% import "../macros/staff-nav.html" as staff_nav %}
{% extends "base.html" %}
{% block title %}Bannery{% endblock %}
{% block content %}
<h1 class="title">Bannery</h1>
{% call staff_nav::staff_nav() %}
<hr>
<h2>Bannery</h2>
<form method="post" action="/staff/actions/remove-banners">
<div class="table-wrap">
<table class="data-table center">
<tr>
<th></th>
<th>Banner</th>
</tr>
{% for banner in banners %}
<tr>
<td><input name="banners[]" type="checkbox" value="{{ banner.id }}"></td>
<td>
<img class="banner" src="{{ banner.banner.file_url() }}">
</td>
</tr>
{% endfor %}
</table>
</div>
<input class="button" type="submit" value="Odstranit vybrané">
</form>
<hr>
<h2>Přidat bannery</h2>
<form method="post" enctype="multipart/form-data" action="/staff/actions/add-banners">
<table class="form-table">
<tr>
<td class="label">Bannery</td>
<td><div class="input-wrapper"><input name="files[]" type="file" multiple="multiple" required=""></div></td>
</tr>
<tr>
<td colspan="2"><input class="button" type="submit" value="Přidat bannery"></td>
</tr>
</table>
</form>
{% endblock %}