Initial
This commit is contained in:
24
app/templates/components/table_component.html
Normal file
24
app/templates/components/table_component.html
Normal 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 %}
|
||||
Reference in New Issue
Block a user