nekrochan/templates/staff/account.html

68 řádky
2.1 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 %}Účet ({{ account.username }}){% endblock %}
{% block content %}
<h1 class="title">Účet ({{ account.username }})</h1>
2023-12-25 13:53:44 +00:00
{% call staff_nav::staff_nav() %}
2023-12-11 15:18:43 +00:00
<hr>
<h2>Změnit heslo</h2>
<form method="post" action="/staff/actions/change-password">
<table class="form-table">
<tr>
<td class="label">Staré heslo</td>
2024-01-15 15:06:25 +00:00
<td><input name="old_password" type="password" required=""></td>
2023-12-11 15:18:43 +00:00
</tr>
<tr>
<td class="label">Nové heslo</td>
2024-01-15 15:06:25 +00:00
<td><input name="new_password" type="password" required=""></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="Změnit heslo"></td>
2023-12-11 15:18:43 +00:00
</tr>
</table>
</form>
<hr>
{% if tcx.perms.owner() %}
<h2>Předat vlastnictví</h2>
<form method="post" action="/staff/actions/transfer-ownership">
<table class="form-table">
<tr>
<td class="label">Účet</td>
2024-01-15 15:06:25 +00:00
<td><input name="account" type="text" required=""></td>
2023-12-11 15:18:43 +00:00
</tr>
<tr>
<td class="label">Potvrdit</td>
<td>
<div class="input-wrapper">
2024-01-15 15:06:25 +00:00
<input name="confirm" type="checkbox" required="">
2023-12-11 15:18:43 +00:00
</div>
</td>
</tr>
<tr>
2024-01-15 15:06:25 +00:00
<td colspan="2"><input class="button" type="submit" value="Předat vlastnictví"></td>
2023-12-11 15:18:43 +00:00
</tr>
</table>
</form>
<hr>
{% endif %}
<h2>Vymazat účet</h2>
<form method="post" action="/staff/actions/delete-account">
<table class="form-table">
<tr>
<td class="label">Potvrdit</td>
<td>
<div class="input-wrapper">
2024-01-15 15:06:25 +00:00
<input name="confirm" type="checkbox" required="">
2023-12-11 15:18:43 +00:00
</div>
</td>
</tr>
<tr>
2024-01-15 15:06:25 +00:00
<td colspan="2"><input class="button" type="submit" value="Vymazat účet"></td>
2023-12-11 15:18:43 +00:00
</tr>
</table>
</form>
{% endblock %}