Molodetz blogrol volgens DPP-template

This commit is contained in:
2026-10-05 09:36:20 +02:00
commit f290a4c766
277 changed files with 15758 additions and 0 deletions
+25
View File
@@ -0,0 +1,25 @@
<!-- retoor <retoor@molodetz.nl> -->
{% extends "admin/base_admin.html" %}
{% block admin_content %}
<h1>Accounts</h1>
<div class="table-wrap">
<table class="admin-table">
<thead><tr><th>Naam</th><th>Rol</th><th>Sinds</th><th></th></tr></thead>
<tbody>
{% for user in users %}
<tr>
<td>{{ user.username }}{% if is_primary_admin(user) %} <span class="muted">(primair)</span>{% endif %}</td>
<td>{{ user.role }}</td>
<td>{{ local_dt(user.created_at, 'date') }}</td>
<td>
<form class="actions" method="post" action="/admin/users/{{ user.uid }}/role">
<select name="role" aria-label="Rol"><option value="Admin" {% if user.role == 'Admin' %}selected{% endif %}>Admin</option><option value="Member" {% if user.role == 'Member' %}selected{% endif %}>Member</option></select>
<button class="button ghost small" type="submit">Zet</button>
</form>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}