sp-codes.de/src/_includes/expenses-current.html
Samuel Philipp 51f9a85aa0
All checks were successful
Build and Deploy Website / Build Website (push) Successful in 45s
Build and Deploy Website / Deploy Website (push) Has been skipped
Build and Deploy Website / Deploy Dev Website (push) Successful in 10s
much more improvements, updated english texts
2024-03-30 03:09:13 +01:00

37 lines
1.3 KiB
HTML

<div class="table-container">
<table class="table">
<thead>
<tr>
<th>{{strings.donations.name[locale]}}</th>
<th>{{strings.donations.type[locale]}}</th>
<th>{{strings.donations.provider[locale]}}</th>
<th>{{strings.donations.location[locale]}}</th>
<th>{{strings.donations.amount[locale]}} / {{strings.donations.month[locale]}}</th>
<th>{{strings.donations.amount[locale]}} / {{strings.donations.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>
<td>{{expense.location}}</td>
<td>{{expense.amount | amount}} €</td>
<td>{{expense.amount | year | amount}} €</td>
</tr>
{% endfor %}
</tbody>
<tfoot>
<tr>
<th colspan="4">{{strings.donations.total[locale]}}</th>
<th>{{expenses | sum | amount}} €</th>
<th>{{expenses | sum | year | amount}} €</th>
</tr>
</tfoot>
</table>
</div>