Load a list of clients

This commit is contained in:
2022-04-06 17:18:06 +02:00
parent f6403afa34
commit da6a494875
14 changed files with 184 additions and 28 deletions

View File

@ -30,8 +30,8 @@
<hr/>
{% if is_admin %}
<li>
<a href="/admin/apps" class="nav-link link-dark">
Applications
<a href="/admin/clients" class="nav-link link-dark">
Clients
</a>
</li>
<li>

View File

@ -0,0 +1,23 @@
{% extends "base_settings_page.html" %}
{% block content %}
<table class="table table-hover" style="max-width: 600px;" aria-describedby="Clients list">
<thead>
<tr>
<th scope="col">ID</th>
<th scope="col">Name</th>
<th scope="col">Description</th>
</tr>
</thead>
<tbody>
{% for c in clients %}
<tr>
<td>{{ c.id.0 }}</td>
<td>{{ c.name }}</td>
<td>{{ c.description }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock content %}