38 lines
1.4 KiB
Handlebars
38 lines
1.4 KiB
Handlebars
<div class="card my-2">
|
|
<div class="card-body">
|
|
<div class="table-responsive {{#if (or sort search)}}data-list{{/if}}">
|
|
{{#if search}}
|
|
<div class="p-2">
|
|
<input type="search" class="form-control form-control-rounded fs-6 search" placeholder="Search…">
|
|
</div>
|
|
{{/if}}
|
|
<table class="table">
|
|
{{~#each_row~}}
|
|
{{#if (eq @row_index 0)}}
|
|
<thead>
|
|
<tr>
|
|
{{#each this}}
|
|
<th>
|
|
{{#if ../../sort}}
|
|
<button class="table-sort sort" data-sort="{{@key}}">{{@key}}</button>
|
|
{{else}}
|
|
{{@key}}
|
|
{{/if}}
|
|
</th>
|
|
{{/each}}
|
|
</tr>
|
|
</thead>
|
|
<tbody class="table-tbody list">{{#delay}}</tbody>{{/delay}}
|
|
{{/if}}
|
|
|
|
<tr>
|
|
{{~#each this~}}
|
|
<td class="{{@key}}">{{this}}</td>
|
|
{{~/each~}}
|
|
</tr>
|
|
{{~/each_row~}}
|
|
{{flush_delayed}}
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div> |