50 lines
1.2 KiB
HTML
50 lines
1.2 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Dashboard - IZBI DNS</title>
|
|
</head>
|
|
<body>
|
|
<h2>Hello {{ username }} <a href="/logout">log 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 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>{% if is_admin %}{% include 'admin.html' %}{% endif %}
|
|
</body>
|
|
</html>
|