nekrochan/templates/staff/banners.html

47 řádky
1.4 KiB
HTML
Surový Normální zobrazení Historie

2023-12-11 15:18:43 +00:00
{% import "../macros/staff-nav.html" as staff_nav %}
{% extends "base.html" %}
2023-12-16 12:51:50 +00:00
{% block title %}Bannery{% endblock %}
2023-12-11 15:18:43 +00:00
{% block content %}
2023-12-16 12:51:50 +00:00
<h1 class="title">Bannery</h1>
2023-12-11 15:18:43 +00:00
{% call staff_nav::staff_nav(tcx.perms) %}
<hr>
<h2>Bannery</h2>
<form method="post" action="/staff/actions/remove-banners">
<div class="table-wrap">
<table class="data-table">
<tr>
<th></th>
<th>Banner</th>
</tr>
2023-12-16 12:51:50 +00:00
{% for banner in banners %}
2023-12-11 15:18:43 +00:00
<tr>
2023-12-16 12:51:50 +00:00
<td><input name="banners[]" type="checkbox" value="{{ banner.id }}"></td>
2023-12-11 15:18:43 +00:00
<td>
2023-12-16 12:51:50 +00:00
<img class="banner" src="{{ banner.banner.file_url() }}">
2023-12-11 15:18:43 +00:00
</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="required"></div></td>
</tr>
<tr>
<td class="submit" colspan="2"><input class="button" type="submit" value="Přidat bannery"></td>
</tr>
</table>
</form>
<hr>
{% endblock %}