delphimvcframework/samples/htmx_mustache/bin/templates/people_table.mustache

27 lines
752 B
Plaintext
Raw Normal View History

<table class="table table-striped">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">First name</th>
<th scope="col">Last name</th>
<th scope="col">Age</th>
<th scope="col">&nbsp;</th>
</tr>
</thead>
<tbody>
{{^people}}
<tr>
<td class="text-center" colspan="5">&lt;&lt;No People Found&gt;&gt;</td>
</tr>
{{/people}} {{#people}}
<tr>
<td>{{-index}}</td>
<td>{{first_name}}</td>
<td>{{last_name}}</td>
<td>{{age}}</td>
<td class="text-right">{{>delete_person_link}} | {{>view_person_link}}</td>
</tr>
{{/people}}
</tbody>
</table>