Files
firefly-iii/resources/views/reports/partials/budget-period.twig

43 lines
1.6 KiB
Twig
Raw Normal View History

<table class="table table-hover sortable">
<thead>
<tr>
2016-12-07 21:38:35 +01:00
<th data-defaultsign="az" colspan="2">{{ 'budget'|_ }}</th>
2016-11-19 07:27:54 +01:00
{% for period in periods %}
2017-01-02 21:04:17 +01:00
<th data-defaultsign="_19" style="text-align: right;">{{ period }}</th>
{% endfor %}
2017-01-02 21:04:17 +01:00
<th data-defaultsign="_19" style="text-align: right;">{{ 'sum'|_ }}</th>
</tr>
</thead>
<tbody>
{% for id, info in report %}
<tr>
2016-12-07 21:38:35 +01:00
<td>
2017-03-01 21:13:45 +01:00
{% if id != 0 %}
2017-08-20 12:43:31 +02:00
<a class="btn btn-default btn-xs" href="{{ route('budgets.show', [id]) }}"><i class="fa fa-external-link"></i></a>
2017-03-01 21:13:45 +01:00
{% else %}
2017-08-20 12:43:31 +02:00
<a class="btn btn-default btn-xs" href="{{ route('budgets.no-budget') }}"><i class="fa fa-external-link"></i></a>
2017-03-01 21:13:45 +01:00
{% endif %}
2016-12-07 21:38:35 +01:00
</td>
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>
</td>
{% for key, period in periods %}
{% if(info.entries[key]) %}
2017-01-02 21:04:17 +01:00
<td data-value="{{ info.entries[key] }}" style="text-align: right;">
{{ info.entries[key]|formatAmount }}
</td>
{% else %}
2017-01-02 21:04:17 +01:00
<td data-value="0" style="text-align: right;">
{{ 0|formatAmount }}
</td>
{% endif %}
{% endfor %}
2017-01-02 21:04:17 +01:00
<td data-value="{{ info.sum }}" style="text-align: right;">
{{ info.sum|formatAmount }}
</td>
</tr>
{% endfor %}
</tbody>
</table>