Files
izbi-dns/app/templates/dashboard.html
T

50 lines
1.2 KiB
HTML
Raw Normal View History

2026-08-24 17:24:08 +02:00
<!DOCTYPE html>
<html>
<head>
<title>Dashboard - IZBI DNS</title>
</head>
<body>
<h2>Hello {{ username }} <a href="/logout">log&nbsp;out</a></h2>
{% with messages = get_flashed_messages()%}
{% if messages%}
{% for message in messages%}
<h3>{{message}}</h3>
{%endfor%}
{%endif%}
{%endwith%}
<p>Your domains:
<ul>{% for domain in domains %}
<li>{{ domain }}</li>
{% endfor %}
</ul>
</p>
<p>Your tokens:
<form method="POST" action="/generate-token">
<input type="text" name="token" placeholder="token name" />
<button type="submit">new&nbsp;token</button>
</form>
<ul>{% for token in tokens %}
<li>
<form method="POST" action="/revoke-token">
<input type="text" name="token" readonly value="{{ token }}" />
<button type="submit">revoke</button>
</form>
</li>
{% endfor %}
</ul>
</p>
<p>Password change
<form method="POST" action="/change-password">
<input type="password" name="pass" placeholder="old password" /><br />
<input type="password" name="pass-new" placeholder="new password" /><br />
<input type="password" name="pass-rep" placeholder="repeat password" /><br />
<button type="submit">change password</button>
</form>
</p>
</body>
</html>