feat: Enforce classic UI design principles by applying a global monospace font, refactoring the dashboard to use a basic HTML table, and stripping modern CSS from the index page.
This commit is contained in:
@@ -14,26 +14,36 @@
|
||||
<font color="red"><b>{{ err }}</b></font><br>
|
||||
{% endif %}
|
||||
|
||||
{% for user in users %}
|
||||
<p>
|
||||
ID: {{ user.id }}<br>
|
||||
Username: <a href="#">{{ user.username }}</a><br>
|
||||
Role: {{ user.role }}<br>
|
||||
|
||||
{% if current_user.role == "admin" %}
|
||||
{% if user.id != current_user.id %}
|
||||
<form method="POST" action="/__dungeon/users/delete/{{ user.id }}" style="display:inline;">
|
||||
<input type="submit" value="Delete User">
|
||||
</form>
|
||||
{% endif %}
|
||||
<form method="POST" action="/__dungeon/users/password/{{ user.id }}" style="display:inline;">
|
||||
<input type="password" name="password" placeholder="New Password" required size="10">
|
||||
<input type="submit" value="Change Password">
|
||||
</form>
|
||||
{% endif %}
|
||||
</p>
|
||||
<hr width="50%" align="left" size="1">
|
||||
{% endfor %}
|
||||
<table border="1" cellpadding="5" cellspacing="0">
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Username</th>
|
||||
<th>Role</th>
|
||||
{% if current_user.role == "admin" %}
|
||||
<th>Actions</th>
|
||||
{% endif %}
|
||||
</tr>
|
||||
{% for user in users %}
|
||||
<tr>
|
||||
<td>{{ user.id }}</td>
|
||||
<td><a href="#">{{ user.username }}</a></td>
|
||||
<td>{{ user.role }}</td>
|
||||
{% if current_user.role == "admin" %}
|
||||
<td>
|
||||
{% if user.id != current_user.id %}
|
||||
<form method="POST" action="/__dungeon/users/delete/{{ user.id }}" style="display:inline;">
|
||||
<input type="submit" value="Delete User">
|
||||
</form>
|
||||
{% endif %}
|
||||
<form method="POST" action="/__dungeon/users/password/{{ user.id }}" style="display:inline;">
|
||||
<input type="password" name="password" placeholder="New Password" required size="10">
|
||||
<input type="submit" value="Change Password">
|
||||
</form>
|
||||
</td>
|
||||
{% endif %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
{% if current_user.role == "admin" %}
|
||||
<br>
|
||||
|
||||
Reference in New Issue
Block a user