Molodetz blogrol volgens DPP-template
This commit is contained in:
@@ -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 %}
|
||||
Reference in New Issue
Block a user