2016-11-02 20:08:11 +01:00
|
|
|
<table class="table table-hover sortable">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th>{{ 'budget'|_ }}</th>
|
2016-11-19 07:27:54 +01:00
|
|
|
{% for period in periods %}
|
|
|
|
|
<th>{{ period }}</th>
|
2016-11-02 20:08:11 +01:00
|
|
|
{% endfor %}
|
|
|
|
|
<th>{{ 'sum'|_ }}</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
2016-11-19 07:27:54 +01:00
|
|
|
{% for id, info in budgets %}
|
2016-11-02 20:08:11 +01:00
|
|
|
<tr>
|
|
|
|
|
<td>
|
2016-11-19 07:27:54 +01:00
|
|
|
(<a title="{{ info.name }}" href="#" data-budget="{{ id }}" class="budget-chart-activate">{{ info.name }}</a>)
|
2016-11-02 20:08:11 +01:00
|
|
|
{% if id == 0 %}
|
|
|
|
|
<a href="{{ route('budgets.noBudget') }}">{{ info.name }}</a>
|
|
|
|
|
{% else %}
|
|
|
|
|
<a href="{{ route('budgets.show', id) }}">{{ info.name }}</a>
|
|
|
|
|
{% endif %}
|
|
|
|
|
</td>
|
|
|
|
|
{% for amount in info.entries %}
|
|
|
|
|
<td data-value="{{ amount }}">
|
|
|
|
|
{{ amount|formatAmount }}
|
|
|
|
|
</td>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
<td data-value="{{ info.sum }}">
|
|
|
|
|
{{ info.sum|formatAmount }}
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|