BasicOIDC/templates/settings/users_list.html
2022-04-06 18:06:38 +02:00

36 lines
988 B
HTML

{% extends "base_settings_page.html" %}
{% block content %}
<a href="/admin/create_user" class="btn btn-primary">Create a new user</a>
<p>&nbsp;</p>
<table class="table table-hover" style="max-width: 1000px;" aria-describedby="Clients list">
<thead>
<tr>
<th scope="col">Username</th>
<th scope="col">First name</th>
<th scope="col">Last name</th>
<th scope="col">Email</th>
<th scope="col">Account type</th>
<th scope="col">Enabled</th>
<th scope="col">Actions</th>
</tr>
</thead>
<tbody>
{% for u in users %}
<tr>
<td>{{ u.username }}</td>
<td>{{ u.first_name }}</td>
<td>{{ u.last_name }}</td>
<td>{{ u.email }}</td>
<td>{% if u.admin %}Admin{% else %}Regular account{% endif %}</td>
<td>{% if u.enabled %}Enabled{% else %}Disabled{% endif %}</td>
<td>Edit Delete</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock content %}