2023-12-11 15:18:43 +00:00
|
|
|
{% import "../macros/staff-nav.html" as staff_nav %}
|
|
|
|
|
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block title %}Nástěnky{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<h1 class="title">Nástěnky</h1>
|
2023-12-25 13:53:44 +00:00
|
|
|
{% call staff_nav::staff_nav() %}
|
2023-12-11 15:18:43 +00:00
|
|
|
<hr>
|
|
|
|
<h2>Nástěnky</h2>
|
|
|
|
<form method="post">
|
|
|
|
<div class="table-wrap">
|
2024-01-02 11:58:47 +00:00
|
|
|
<table class="data-table center">
|
2023-12-11 15:18:43 +00:00
|
|
|
<tr>
|
|
|
|
<th></th>
|
|
|
|
<th>ID</th>
|
|
|
|
<th>Jméno</th>
|
|
|
|
<th>Popis</th>
|
|
|
|
<th>Vytvořena</th>
|
|
|
|
<th>Nastavení</th>
|
|
|
|
</tr>
|
|
|
|
{% for board in boards %}
|
|
|
|
<tr>
|
|
|
|
<td><input name="boards[]" type="checkbox" value="{{ board.id }}"></td>
|
|
|
|
<td>/{{ board.id }}/</td>
|
|
|
|
<td>{{ board.name }}</td>
|
|
|
|
<td>{{ board.description }}</td>
|
2024-02-25 16:26:39 +00:00
|
|
|
<td><time datetime="{{ board.created }}">{{ board.created|czech_datetime }}</time></td>
|
2023-12-11 15:18:43 +00:00
|
|
|
<td>{% if tcx.perms.owner() || tcx.perms.board_config() %}<a href="/staff/board-config/{{ board.id }}">[Zobrazit]</a>{% else %}-{% endif %}</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% if tcx.perms.owner() %}
|
|
|
|
<input class="button" type="submit" formaction="/staff/actions/remove-boards" value="Odstranit vybrané" formnovalidate>
|
2024-03-05 16:48:25 +00:00
|
|
|
<hr>
|
2023-12-11 15:18:43 +00:00
|
|
|
<table class="form-table">
|
|
|
|
<tr>
|
|
|
|
<td class="label">Jméno</td>
|
2024-01-15 15:06:25 +00:00
|
|
|
<td><input name="name" type="text" required=""></td>
|
2023-12-11 15:18:43 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="label">Popis</td>
|
2024-03-04 18:39:58 +00:00
|
|
|
<td><input name="description" type="text"></td>
|
2023-12-11 15:18:43 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2024-01-15 15:06:25 +00:00
|
|
|
<td colspan="2"><input class="button" type="submit" formaction="/staff/actions/update-boards" value="Upravit vybrané"></td>
|
2023-12-11 15:18:43 +00:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
{% endif %}
|
|
|
|
</form>
|
|
|
|
<hr>
|
|
|
|
<h2>Vytvořit nástěnku</h2>
|
|
|
|
<form method="post" action="/staff/actions/create-board">
|
|
|
|
<table class="form-table">
|
|
|
|
<tr>
|
|
|
|
<td class="label">ID</td>
|
2024-01-15 15:06:25 +00:00
|
|
|
<td><input name="id" type="text" required=""></td>
|
2023-12-11 15:18:43 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="label">Jméno</td>
|
2024-01-15 15:06:25 +00:00
|
|
|
<td><input name="name" type="text" required=""></td>
|
2023-12-11 15:18:43 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td class="label">Popis</td>
|
2024-03-02 23:19:48 +00:00
|
|
|
<td><input name="description" type="text"></td>
|
2023-12-11 15:18:43 +00:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2024-01-15 15:06:25 +00:00
|
|
|
<td colspan="2"><input class="button" type="submit" value="Vytvořit nástěnku"></td>
|
2023-12-11 15:18:43 +00:00
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</form>
|
|
|
|
{% endblock %}
|