2021-02-08 12:39:28 +01:00
|
|
|
{% extends "admin.html" %}
|
|
|
|
|
|
|
|
{% block admin %}
|
2021-02-09 14:19:48 +01:00
|
|
|
<div class="center">
|
2021-02-14 22:28:34 +01:00
|
|
|
<h1>Profil von {{viewed_user.username}}</h1>
|
2021-02-09 14:19:48 +01:00
|
|
|
<form action="" method="POST">
|
|
|
|
<div>
|
|
|
|
<label for="username">Benutzername:</label>
|
2021-02-14 22:28:34 +01:00
|
|
|
<input type="text" name="username" value="{{ viewed_user.username }}" readonly>
|
2021-02-09 14:19:48 +01:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
<label for="email">E-mail:</label>
|
2021-02-14 22:28:34 +01:00
|
|
|
<input type="email" name="email" value="{{ viewed_user.email }}" readonly>
|
2021-02-09 14:19:48 +01:00
|
|
|
</div>
|
2021-02-14 22:28:34 +01:00
|
|
|
{% if user.role == 2 or user.id == viewed_user.id %}
|
2021-02-09 14:19:48 +01:00
|
|
|
<div>
|
|
|
|
<label for="password">Passwort:</label>
|
|
|
|
<input type="password" name="password" value="verschlüsselt" readonly>
|
|
|
|
</div>
|
2021-02-14 22:28:34 +01:00
|
|
|
{% endif %}
|
2021-02-09 14:19:48 +01:00
|
|
|
</form>
|
2021-02-14 22:28:34 +01:00
|
|
|
{% if user.role == 2 or user.id == viewed_user.id %}
|
2021-02-09 14:19:48 +01:00
|
|
|
<div class="actions">
|
2021-02-14 22:28:34 +01:00
|
|
|
<a class="button" href="/admin/edit/profile/{{ viewed_user.id }}">Editieren</a>
|
|
|
|
{% if user.role == 2 and viewed_user.role == 1 %}
|
|
|
|
<a class="button" href="/admin/edit/set_admin/{{ viewed_user.id }}">Zum Admin machen</a>
|
|
|
|
{% endif %}
|
|
|
|
{% if user.role == 2 and viewed_user.role == 2 %}
|
|
|
|
<a class="button" href="/admin/edit/set_admin/{{ viewed_user.id }}">Zum Normalo machen</a>
|
|
|
|
{% endif %}
|
2021-02-08 12:39:28 +01:00
|
|
|
</div>
|
2021-02-14 22:28:34 +01:00
|
|
|
{% endif %}
|
2021-02-09 14:19:48 +01:00
|
|
|
<h2> </h2>
|
2021-02-08 12:39:28 +01:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|