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

@ -1,4 +1,4 @@
{{ block usersTable(users) }}
{% macro usersTable(users) %}
<table class="table table-hover">
<thead>
<tr>
@ -9,16 +9,16 @@
</tr>
</thead>
<tbody>
{{ range users }}
{% for user in users %}
<tr>
<td>
<a href="/users/{{ .Id }}">{{ .Id }}</a>
<a href="/users/{{ user.Id }}">{{ user.Id }}</a>
</td>
<td>{{ .FirstName }}</td>
<td>{{ .LastName }}</td>
<td>{{ .Email }}</td>
<td>{{ user.FirstName }}</td>
<td>{{ user.LastName }}</td>
<td>{{ user.Email }}</td>
</tr>
{{ end }}
{% endfor %}
</tbody>
</table>
{{ end }}
{% endmacro %}