nekrochan/templates/staff/board-config.html

183 řádky
6.8 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" %}
{% block title %}Nastavení (/{{ board.id }}/){% endblock %}
{% block content %}
<h1 class="title">Nastavení (/{{ board.id }}/)</h1>
2023-12-25 13:53:44 +00:00
{% call staff_nav::staff_nav() %}
2023-12-11 15:18:43 +00:00
<hr>
<form method="post" action="/staff/actions/update-board-config">
<input name="board" type="hidden" value="{{ board.id }}">
<table class="form-table">
<tr>
<td class="label">Uzamknout nástěnku</td>
<td>
<div class="input-wrapper">
<input name="locked" type="checkbox" {% if board.config.0.locked %}checked=""{% endif %}>
2023-12-11 15:18:43 +00:00
</div>
</td>
</tr>
<tr>
<td class="label">Výchozí jméno</td>
2024-01-15 15:06:25 +00:00
<td><input name="anon_name" type="text" value="{{ board.config.0.anon_name }}" required=""></td>
2023-12-11 15:18:43 +00:00
</tr>
<tr>
<td class="label">Velikost stránky</td>
2024-01-15 15:06:25 +00:00
<td><input name="page_size" type="number" min="1" value="{{ board.config.0.page_size }}" required=""></td>
2023-12-11 15:18:43 +00:00
</tr>
<tr>
<td class="label">Počet stránek</td>
2024-01-15 15:06:25 +00:00
<td><input name="page_count" type="number" min="1" value="{{ board.config.0.page_count }}" required=""></td>
2023-12-11 15:18:43 +00:00
</tr>
<tr>
<td class="label">Limit souborů</td>
2024-01-15 15:06:25 +00:00
<td><input name="file_limit" type="number" min="1" value="{{ board.config.0.file_limit }}" required=""></td>
2023-12-11 15:18:43 +00:00
</tr>
<tr>
<td class="label">Limit naťuknutí</td>
2024-01-15 15:06:25 +00:00
<td><input name="bump_limit" type="number" min="0" value="{{ board.config.0.bump_limit }}" required=""></td>
2023-12-11 15:18:43 +00:00
</tr>
<tr>
<td class="label">Limit odpovědí</td>
2024-01-15 15:06:25 +00:00
<td><input name="reply_limit" type="number" min="0" value="{{ board.config.0.reply_limit }}" required=""></td>
2023-12-11 15:18:43 +00:00
</tr>
<tr>
<td class="label">Identifikátory (anti-samefag)</td>
<td>
<div class="input-wrapper">
<input name="user_ids" type="checkbox" {% if board.config.0.user_ids %}checked=""{% endif %}>
2023-12-11 15:18:43 +00:00
</div>
</td>
</tr>
<tr>
<td class="label">Vlajky</td>
<td>
<div class="input-wrapper">
<input name="flags" type="checkbox" {% if board.config.0.flags %}checked=""{% endif %}>
2023-12-11 15:18:43 +00:00
</div>
</td>
</tr>
<tr>
<td class="label">CAPTCHA (vlákno)</td>
<td>
<select name="thread_captcha">
<option value="off" {% if board.config.0.thread_captcha == "off" %}selected="selected"{% endif %}>
Žádná
</option>
2024-02-20 21:09:52 +00:00
<option value="easy" {% if board.config.0.thread_captcha == "easy" %}selected="selected"{% endif %}>
2023-12-11 15:18:43 +00:00
Lehká
</option>
2024-02-20 21:09:52 +00:00
<option value="medium" {% if board.config.0.thread_captcha == "medium" %}selected="selected"{% endif %}>
2023-12-11 15:18:43 +00:00
Střední
</option>
<option value="hard" {% if board.config.0.thread_captcha == "hard" %}selected="selected"{% endif %}>
Obtížná
</option>
</select>
</td>
</tr>
<tr>
<td class="label">CAPTCHA (odpověď)</td>
<td>
<select name="reply_captcha">
<option value="off" {% if board.config.0.reply_captcha == "off" %}selected="selected"{% endif %}>
Žádná
</option>
2024-02-20 21:09:52 +00:00
<option value="easy" {% if board.config.0.reply_captcha == "easy" %}selected="selected"{% endif %}>
2023-12-11 15:18:43 +00:00
Lehká
</option>
2024-02-20 21:09:52 +00:00
<option value="medium" {% if board.config.0.reply_captcha == "medium" %}selected="selected"{% endif %}>
2023-12-11 15:18:43 +00:00
Střední
</option>
<option value="hard" {% if board.config.0.reply_captcha == "hard" %}selected="selected"{% endif %}>
Obtížná
</option>
</select>
</td>
</tr>
2024-02-17 21:24:39 +00:00
<tr>
<td class="label">Motiv nástěnky</td>
<td><input name="board_theme" type="text" value="{{ board.config.0.board_theme }}" required=""></td>
</tr>
2023-12-11 15:18:43 +00:00
<tr>
<td class="label">Vyžadovat obsah ve vlákně</td>
<td>
<div class="input-wrapper">
<input name="require_thread_content" type="checkbox" {% if board.config.0.require_thread_content %}checked=""{% endif %}>
2023-12-11 15:18:43 +00:00
</div>
</td>
</tr>
<tr>
<td class="label">Vyžadovat soubor ve vlákně</td>
<td>
<div class="input-wrapper">
<input name="require_thread_file" type="checkbox" {% if board.config.0.require_thread_file %}checked=""{% endif %}>
2023-12-11 15:18:43 +00:00
</div>
</td>
</tr>
<tr>
<td class="label">Vyžadovat obsah v odpovědi</td>
<td>
<div class="input-wrapper">
<input name="require_reply_content" type="checkbox" {% if board.config.0.require_reply_content %}checked=""{% endif %}>
2023-12-11 15:18:43 +00:00
</div>
</td>
</tr>
<tr>
<td class="label">Vyžadovat soubor v odpovědi</td>
<td>
<div class="input-wrapper">
<input name="require_reply_file" type="checkbox" {% if board.config.0.require_reply_file %}checked=""{% endif %}>
2023-12-11 15:18:43 +00:00
</div>
</td>
</tr>
2023-12-13 15:17:49 +00:00
<tr>
<td class="label">Antispam</td>
<td>
<div class="input-wrapper">
<input name="antispam" type="checkbox" {% if board.config.0.antispam %}checked=""{% endif %}>
2023-12-13 15:17:49 +00:00
</div>
</td>
</tr>
<tr>
<td class="label">Interval antispamu (IP)</td>
2024-01-15 15:06:25 +00:00
<td><input name="antispam_ip" type="number" min="0" value="{{ board.config.0.antispam_ip }}" required=""></td>
2023-12-13 15:17:49 +00:00
</tr>
<tr>
<td class="label">Interval antispamu (Obsah)</td>
2024-01-15 15:06:25 +00:00
<td><input name="antispam_content" type="number" min="0" value="{{ board.config.0.antispam_content }}" required=""></td>
2023-12-13 15:17:49 +00:00
</tr>
<tr>
<td class="label">Interval antispamu (IP+Obsah)</td>
2024-01-15 15:06:25 +00:00
<td><input name="antispam_both" type="number" min="0" value="{{ board.config.0.antispam_both }}" required=""></td>
2023-12-13 15:17:49 +00:00
</tr>
2023-12-11 15:18:43 +00:00
<tr>
2024-01-15 15:06:25 +00:00
<td colspan="2"><input class="button" type="submit" value="Uložit"></td>
2023-12-11 15:18:43 +00:00
</tr>
</table>
</form>
{% endblock %}