sp-codes.de/src/_includes/expenses-current.html

38 lines
1.2 KiB
HTML
Raw Normal View History

2021-06-13 00:17:25 +00:00
<div class="table-container">
<table class="table">
<thead>
<tr>
<th>{{strings.name[locale]}}</th>
<th>{{strings.type[locale]}}</th>
<th>{{strings.provider[locale]}}</th>
2023-07-14 21:56:25 +00:00
<th>{{strings.location[locale]}}</th>
2021-06-13 00:17:25 +00:00
<th>{{strings.amount[locale]}} / {{strings.month[locale]}}</th>
<th>{{strings.amount[locale]}} / {{strings.year[locale]}}</th>
</tr>
</thead>
<tbody>
{% for expense in expenses %}
<tr>
{% if expense.name[locale] %}
<td>{{expense.name[locale]}}</td>
{% else %}
<td>{{expense.name}}</td>
{% endif %}
<td>{{expense.type}}</td>
<td>{{expense.provider}}</td>
2023-07-14 21:56:25 +00:00
<td>{{expense.location}}</td>
2021-06-13 00:17:25 +00:00
<td>{{expense.amount | amount}} €</td>
<td>{{expense.amount | year | amount}} €</td>
</tr>
{% endfor %}
</tbody>
<tfoot>
<tr>
2023-07-14 21:56:25 +00:00
<th colspan="4">{{strings.total[locale]}}</th>
2021-06-13 00:17:25 +00:00
<th>{{expenses | sum | amount}} €</th>
<th>{{expenses | sum | year | amount}} €</th>
</tr>
</tfoot>
</table>
</div>