2016-11-02 20:08:11 +01:00
|
|
|
<table class="table table-hover sortable">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
2016-11-20 17:36:11 +01:00
|
|
|
<th data-defaultsign="az">{{ 'budget'|_ }}</th>
|
2016-11-19 07:27:54 +01:00
|
|
|
{% for period in periods %}
|
2016-11-20 17:36:11 +01:00
|
|
|
<th data-defaultsign="_19">{{ period }}</th>
|
2016-11-02 20:08:11 +01:00
|
|
|
{% endfor %}
|
2016-11-20 17:36:11 +01:00
|
|
|
<th data-defaultsign="_19">{{ 'sum'|_ }}</th>
|
2016-11-02 20:08:11 +01:00
|
|
|
</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>
|
2016-11-20 17:36:11 +01:00
|
|
|
<td data-value="{{ info.name }}">
|
2016-11-19 09:26:32 +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
|
|
|
</td>
|
2016-11-26 07:09:02 +01:00
|
|
|
{% for key, period in periods %}
|
|
|
|
|
{% if(info.entries[key]) %}
|
|
|
|
|
<td data-value="{{ info.entries[key] }}">
|
|
|
|
|
{{ info.entries[key]|formatAmount }}
|
|
|
|
|
</td>
|
|
|
|
|
{% else %}
|
|
|
|
|
<td data-value="0">
|
|
|
|
|
{{ 0|formatAmount }}
|
|
|
|
|
</td>
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
2016-11-02 20:08:11 +01:00
|
|
|
{% endfor %}
|
|
|
|
|
<td data-value="{{ info.sum }}">
|
|
|
|
|
{{ info.sum|formatAmount }}
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
|
{% endfor %}
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|