| 1 |
{% if pagination.css_framework == "bootstrap5" %} |
| 2 |
{% extends 'base5.html' %} |
| 3 |
{% else %} |
| 4 |
{% extends "base.html" %} |
| 5 |
{% endif %} |
| 6 |
|
| 7 |
{% block body %} |
| 8 |
{% if users %} |
| 9 |
{{ pagination.info }} |
| 10 |
{{ pagination.links }} |
| 11 |
<div class="table-responsive"> |
| 12 |
<table class="table table-hover"> |
| 13 |
<thead> |
| 14 |
<tr><th>#</th><th>User Name</th></tr> |
| 15 |
</thead> |
| 16 |
<tbody> |
| 17 |
{% for user in users %} |
| 18 |
<tr> |
| 19 |
<td>{{ loop.index + pagination.skip }}</td> |
| 20 |
<td>{{ user.name }}</td> |
| 21 |
</tr> |
| 22 |
{% endfor %} |
| 23 |
</tbody> |
| 24 |
</table> |
| 25 |
</div> |
| 26 |
{{ pagination.links }} |
| 27 |
{% endif %} |
| 28 |
{% endblock %} |
| 29 |
|
| 30 |
{% block js %} |
| 31 |
var element = document.getElementById("{{ active_url or 'users-url'}}"); |
| 32 |
element.children[0].classList.add("active"); |
| 33 |
{% endblock %} |