nekrochan/templates/staff/board-config.html

197 řádky
7.3 KiB
HTML
Surový Normální zobrazení Historie

2024-03-16 11:20:50 +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>
{% call staff_nav::staff_nav() %}
<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 %}>
</div>
</td>
</tr>
<tr>
<td class="label">Výchozí jméno</td>
<td><input name="anon_name" type="text" value="{{ board.config.0.anon_name }}" required=""></td>
</tr>
<tr>
<td class="label">Velikost stránky</td>
<td><input name="page_size" type="number" min="1" value="{{ board.config.0.page_size }}" required=""></td>
</tr>
<tr>
<td class="label">Počet stránek</td>
<td><input name="page_count" type="number" min="1" value="{{ board.config.0.page_count }}" required=""></td>
</tr>
<tr>
<td class="label">Limit souborů</td>
<td><input name="file_limit" type="number" min="1" value="{{ board.config.0.file_limit }}" required=""></td>
</tr>
<tr>
<td class="label">Limit naťuknutí</td>
<td><input name="bump_limit" type="number" min="0" value="{{ board.config.0.bump_limit }}" required=""></td>
</tr>
<tr>
<td class="label">Limit odpovědí</td>
<td><input name="reply_limit" type="number" min="0" value="{{ board.config.0.reply_limit }}" required=""></td>
</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 %}>
</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 %}>
</div>
</td>
</tr>
2024-07-24 11:08:08 +00:00
<tr>
<td class="label">Vlajky Regionů</td>
<td>
<div class="input-wrapper">
<input name="flags_reg" type="checkbox" {% if board.config.0.flags_reg %}checked=""{% endif %}>
</div>
</td>
</tr>
2024-03-16 11:20:50 +00:00
<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>
<option value="easy" {% if board.config.0.thread_captcha == "easy" %}selected="selected"{% endif %}>
Lehká
</option>
<option value="medium" {% if board.config.0.thread_captcha == "medium" %}selected="selected"{% endif %}>
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>
<option value="easy" {% if board.config.0.reply_captcha == "easy" %}selected="selected"{% endif %}>
Lehká
</option>
<option value="medium" {% if board.config.0.reply_captcha == "medium" %}selected="selected"{% endif %}>
Střední
</option>
<option value="hard" {% if board.config.0.reply_captcha == "hard" %}selected="selected"{% endif %}>
Obtížná
</option>
</select>
</td>
</tr>
<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>
<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 %}>
</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 %}>
</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 %}>
</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 %}>
</div>
</td>
</tr>
<tr>
<td class="label">Antispam</td>
<td>
<div class="input-wrapper">
<input name="antispam" type="checkbox" {% if board.config.0.antispam %}checked=""{% endif %}>
</div>
</td>
</tr>
<tr>
<td class="label">Interval antispamu (IP)</td>
<td><input name="antispam_ip" type="number" min="0" value="{{ board.config.0.antispam_ip }}" required=""></td>
</tr>
<tr>
<td class="label">Interval antispamu (Obsah)</td>
<td><input name="antispam_content" type="number" min="0" value="{{ board.config.0.antispam_content }}" required=""></td>
</tr>
<tr>
<td class="label">Interval antispamu (IP+Obsah)</td>
<td><input name="antispam_both" type="number" min="0" value="{{ board.config.0.antispam_both }}" required=""></td>
</tr>
<tr>
<td class="label">Interval mezi vlákny (IP)</td>
<td><input name="thread_cooldown" type="number" min="0" value="{{ board.config.0.antispam_both }}" required=""></td>
</tr>
<tr>
<td colspan="2"><input class="button" type="submit" value="Uložit"></td>
</tr>
</table>
</form>
{% endblock %}