mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-05 21:53:08 -06:00
37 lines
1.2 KiB
Twig
37 lines
1.2 KiB
Twig
<div class="box">
|
|
<div class="box-header with-border">
|
|
<h3 class="box-title">{{ 'categories'|_ }}</h3>
|
|
</div>
|
|
<div class="box-body table-responsive no-padding">
|
|
<table class="table table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th>{{ 'categories'|_ }}</th>
|
|
<th colspan="2">{{ 'spent'|_ }}</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for cat in categories.getCategories %}
|
|
<tr>
|
|
<td>
|
|
<a href="{{ route('categories.show',cat.id) }}">{{ cat.name }}</a>
|
|
</td>
|
|
<td>{{ cat.spent|formatAmount }}</td>
|
|
<td style="width:20px;">
|
|
<i class="fa fa-fw fa-info-circle text-muted firefly-info-button"
|
|
data-location="category-entry" data-category-id="{{ cat.id }}"
|
|
></i>
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
<tfoot>
|
|
<tr>
|
|
<td><em>{{ 'sum'|_ }}</em></td>
|
|
<td>{{ categories.getTotal|formatAmount }}</td>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
</div>
|
|
</div>
|