Add editable user profiles

fixes: #5
This commit is contained in:
2021-02-08 12:39:28 +01:00
parent c9c29748b2
commit a71ba86e45
7 changed files with 216 additions and 28 deletions
+21
View File
@@ -0,0 +1,21 @@
{% extends "admin.html" %}
{% block admin %}
<h1>Profil von {{user.username}}</h1>
<form action="" method="POST">
<div>
<label for="username">Benutzername:</label>
<input type="text" name="username" value="{{ user.username }}">
</div>
<div>
<label for="email">E-mail:</label>
<input type="email" name="email" value="{{ user.email }}">
</div>
<div>
<label for="password">Passwort:</label>
<input type="password" name="password" placeholder="Leer lassen um nichts zu ändern">
</div>
<input type="submit" value="Editieren">
</form>
<h2>&nbsp;</h2>
{% endblock %}