225 řádky
8.1 KiB
HTML
225 řádky
8.1 KiB
HTML
{% macro post_actions() %}
|
|
<details>
|
|
<summary class="box">Uživatelské akce</summary>
|
|
<table class="form-table">
|
|
<tr>
|
|
<td class="label">Odstranit příspěvky</td>
|
|
<td>
|
|
<div class="input-wrapper">
|
|
<input name="remove_posts" type="checkbox">
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label">Odstranit soubory</td>
|
|
|
|
<td>
|
|
<div class="input-wrapper">
|
|
<input name="remove_files" type="checkbox">
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label">Přidat/odstranit spoiler</td>
|
|
<td>
|
|
<div class="input-wrapper">
|
|
<input name="toggle_spoiler" type="checkbox">
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label">Heslo</td>
|
|
<td><input name="password" type="password"></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2">
|
|
<input
|
|
class="button"
|
|
type="submit"
|
|
formaction="/actions/user-post-actions"
|
|
value="Odeslat"
|
|
>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<table class="form-table">
|
|
<tr>
|
|
<td class="label">Důvod hlášení</td>
|
|
<td><input name="report_reason" type="text"></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2">
|
|
<input
|
|
class="button"
|
|
type="submit"
|
|
formaction="/actions/report-posts"
|
|
value="Nahlásit"
|
|
>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</details>
|
|
<br>
|
|
{% if tcx.perms.owner() || tcx.perms.edit_posts() || tcx.perms.manage_posts() || tcx.perms.reports() || tcx.perms.bans() %}
|
|
<details>
|
|
<summary class="box">Uklízečské akce</summary>
|
|
<table class="form-table">
|
|
{% if tcx.perms.owner() || tcx.perms.manage_posts() %}
|
|
<tr>
|
|
<td class="label">Odstranit příspěvky</td>
|
|
<td>
|
|
<div class="input-wrapper">
|
|
<input name="staff_remove_posts" type="checkbox">
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label">Odstranit soubory</td>
|
|
<td>
|
|
<div class="input-wrapper">
|
|
<input name="staff_remove_files" type="checkbox">
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label">Přidat/odstranit spoiler</td>
|
|
<td>
|
|
<div class="input-wrapper">
|
|
<input name="staff_toggle_spoiler" type="checkbox">
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label">Odstranit od IP na nástěnce</td>
|
|
<td>
|
|
<div class="input-wrapper">
|
|
<input name="remove_by_ip_board" type="checkbox">
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label">Odstranit od IP globálně</td>
|
|
<td>
|
|
<div class="input-wrapper">
|
|
<input name="remove_by_ip_global" type="checkbox">
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label">Připnout/odepnout</td>
|
|
<td>
|
|
<div class="input-wrapper">
|
|
<input name="toggle_sticky" type="checkbox">
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label">Uzamknout/odemknout</td>
|
|
<td>
|
|
<div class="input-wrapper">
|
|
<input name="toggle_lock" type="checkbox">
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
{% endif %}
|
|
{% if tcx.perms.owner() || tcx.perms.reports() %}
|
|
<tr>
|
|
<td class="label">Odstranit hlášení</td>
|
|
<td>
|
|
<div class="input-wrapper">
|
|
<input name="remove_reports" type="checkbox">
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
{% endif %}
|
|
{% if tcx.perms.owner() || tcx.perms.bans() %}
|
|
<tr>
|
|
<td class="label">Zabanovat uživatele</td>
|
|
<td>
|
|
<div class="input-wrapper">
|
|
<input name="ban_user" type="checkbox">
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
{% if tcx.perms.owner() || tcx.perms.reports() %}
|
|
<tr>
|
|
<td class="label">Zabanovat nahlašovatele</td>
|
|
<td>
|
|
<div class="input-wrapper">
|
|
<input name="ban_reporters" type="checkbox">
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
{% endif %}
|
|
<tr>
|
|
<td class="label">Globální ban</td>
|
|
<td>
|
|
<div class="input-wrapper">
|
|
<input name="global_ban" type="checkbox">
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label">Neodvolatelný ban</td>
|
|
<td>
|
|
<div class="input-wrapper">
|
|
<input name="unappealable_ban" type="checkbox">
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label">Důvod banu</td>
|
|
<td><textarea name="ban_reason"></textarea></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label">Délka banu <span class="small">(dny, 0 = trvalý)</span></td>
|
|
<td><input name="ban_duration" type="number" min="0" value="0"></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="label">Rozsah banu</td>
|
|
<td>
|
|
<select name="ban_range">
|
|
<option value="ip" selected="selected">IP adresa</option>
|
|
<option value="lan">LAN</option>
|
|
<option value="isp">ISP</option>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
{% endif %}
|
|
{% if tcx.perms.owner() || (tcx.perms.edit_posts() && tcx.perms.view_ips()) %}
|
|
<td class="label">Vytrolit uživatele</td>
|
|
<td>
|
|
<div class="input-wrapper">
|
|
<input name="troll_user" type="checkbox">
|
|
</div>
|
|
</td>
|
|
{% endif %}
|
|
<tr>
|
|
<td colspan="2">
|
|
<input
|
|
class="button"
|
|
type="submit"
|
|
formaction="/actions/staff-post-actions"
|
|
value="Odeslat"
|
|
>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
{% if tcx.perms.owner() || tcx.perms.edit_posts() %}
|
|
<table class="form-table">
|
|
<tr>
|
|
<td>
|
|
<input
|
|
class="button"
|
|
type="submit"
|
|
formaction="/edit-posts"
|
|
value="Upravit příspěvky"
|
|
>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
{% endif %}
|
|
</details>
|
|
{% endif %}
|
|
{% endmacro %}
|