mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-11 00:16:54 +00:00
Join two charts, simpler code.
This commit is contained in:
33
resources/views/reports/partials/budget-period.twig
Normal file
33
resources/views/reports/partials/budget-period.twig
Normal file
@@ -0,0 +1,33 @@
|
||||
<table class="table table-hover sortable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>{{ 'budget'|_ }}</th>
|
||||
{% for period in periods %}
|
||||
<th>{{ period }}</th>
|
||||
{% endfor %}
|
||||
<th>{{ 'sum'|_ }}</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for id, info in budgets %}
|
||||
<tr>
|
||||
<td>
|
||||
(<a title="{{ info.name }}" href="#" data-budget="{{ id }}" class="budget-chart-activate">{{ info.name }}</a>)
|
||||
{% 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>
|
||||
Reference in New Issue
Block a user