added table container
This commit is contained in:
parent
8d2492e6c8
commit
bd591594e7
4 changed files with 111 additions and 102 deletions
|
@ -1,33 +1,35 @@
|
|||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{strings.name[locale]}}</th>
|
||||
<th>{{strings.type[locale]}}</th>
|
||||
<th>{{strings.provider[locale]}}</th>
|
||||
<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>
|
||||
<td>{{expense.amount | amount}} €</td>
|
||||
<td>{{expense.amount | year | amount}} €</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th colspan="3">{{strings.total[locale]}}</th>
|
||||
<th>{{expenses | sum | amount}} €</th>
|
||||
<th>{{expenses | sum | year | amount}} €</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
<div class="table-container">
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{strings.name[locale]}}</th>
|
||||
<th>{{strings.type[locale]}}</th>
|
||||
<th>{{strings.provider[locale]}}</th>
|
||||
<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>
|
||||
<td>{{expense.amount | amount}} €</td>
|
||||
<td>{{expense.amount | year | amount}} €</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
<tfoot>
|
||||
<tr>
|
||||
<th colspan="3">{{strings.total[locale]}}</th>
|
||||
<th>{{expenses | sum | amount}} €</th>
|
||||
<th>{{expenses | sum | year | amount}} €</th>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue