2022-04-06 16:03:00 +00:00
|
|
|
{% extends "base_settings_page.html" %}
|
|
|
|
{% block content %}
|
|
|
|
|
2022-04-06 16:06:38 +00:00
|
|
|
<a href="/admin/create_user" class="btn btn-primary">Create a new user</a>
|
|
|
|
|
|
|
|
<p> </p>
|
|
|
|
|
|
|
|
<table class="table table-hover" style="max-width: 1000px;" aria-describedby="Clients list">
|
2022-04-06 16:03:00 +00:00
|
|
|
<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>
|
2022-04-06 16:06:38 +00:00
|
|
|
<th scope="col">Actions</th>
|
2022-04-06 16:03:00 +00:00
|
|
|
</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>
|
2022-04-06 16:08:57 +00:00
|
|
|
<td>{% if u.admin %}Admin{% else %}Regular user{% endif %}</td>
|
2022-04-06 16:03:00 +00:00
|
|
|
<td>{% if u.enabled %}Enabled{% else %}Disabled{% endif %}</td>
|
2022-04-06 16:06:38 +00:00
|
|
|
<td>Edit Delete</td>
|
2022-04-06 16:03:00 +00:00
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
{% endblock content %}
|