40 lines
1.2 KiB
HTML
40 lines
1.2 KiB
HTML
{% extends 'administrator/_layout.auth.html' %}
|
|
|
|
{% block title %}Users{% endblock %}
|
|
|
|
{% block subtitle %}Users list{% endblock %}
|
|
|
|
{% block content %}
|
|
Total: {{ users.total }}
|
|
<table class="table table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th>id</th>
|
|
<th>email</th>
|
|
<th>status</th>
|
|
<th>action</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% if users.total == 0 %}
|
|
{% else %}
|
|
{% for user in users['items'] %}
|
|
<tr>
|
|
<td>{{ user.id }}</td>
|
|
<td>{{ user.email }}</td>
|
|
<td>
|
|
{% if user.status == 0 %}
|
|
<span class="label label-alert">Inactive</span>
|
|
{% else %}
|
|
<span class="label label-success">Active</span>
|
|
{% endif %}
|
|
</td>
|
|
<td>
|
|
<a href="{{ url_for('administrator.user_details', user_id=user.id) }}">Edit</a>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
{% endif %}
|
|
</tbody>
|
|
</table>
|
|
{% endblock %}
|