This commit is contained in:
Eden Kirin
2023-10-26 13:25:10 +02:00
parent 45f6f19441
commit e92a56c393
8 changed files with 45 additions and 14 deletions

View File

@ -0,0 +1,24 @@
{% macro usersTable(users) %}
<table class="table table-hover">
<thead>
<tr>
<th>ID</th>
<th>First name</th>
<th>Last name</th>
<th>Email</th>
</tr>
</thead>
<tbody>
{% for user in users %}
<tr>
<td>
<a href="/users/{{ user.Id }}">{{ user.Id }}</a>
</td>
<td>{{ user.FirstName }}</td>
<td>{{ user.LastName }}</td>
<td>{{ user.Email }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endmacro %}