Show /users endpoints even if there is no user yet

This commit is contained in:
Iam54r1n4
2025-02-03 19:56:13 +00:00
parent 7b828fb9e4
commit ce065dcbb0
2 changed files with 11 additions and 6 deletions

View File

@ -35,6 +35,11 @@
</div>
</div>
<div class="card-body table-responsive p-0">
{% if users|length == 0 %}
<div class="alert alert-warning" role="alert">
No users found.
</div>
{% else %}
<table class="table table-bordered table-hover" id="userTable">
<thead>
<tr>
@ -105,6 +110,7 @@
{% endfor %}
</tbody>
</table>
{% endif %}
<div class="row mt-3">
<div class="col-sm-12 col-md-7">
<div class="dataTables_paginate paging_simple_numbers" id="userTable_paginate">
@ -115,9 +121,9 @@
</div>
</div>
</div>
</div>
</section>
<!-- Add User Modal -->
<div class="modal fade" id="addUserModal" tabindex="-1" role="dialog" aria-labelledby="addUserModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">