New budget table for multi year report.

Signed-off-by: James Cole <thegrumpydictator@gmail.com>
This commit is contained in:
James Cole
2016-11-02 04:55:44 +01:00
parent 33c0c1bea6
commit 124ecb1372
4 changed files with 170 additions and 6 deletions

View File

@@ -69,9 +69,6 @@
</div>
</div>
</div>
<div class="col-lg-6 col-md-6 col-sm-6">
{% include 'reports/partials/tags.twig' %}
</div>
</div>
<div class="row">
@@ -87,6 +84,44 @@
</div>
</div>
<div class="row">
<div class="col-lg-12 col-md-12 col-sm-12">
<div class="box">
<div class="box-header with-border">
<h3 class="box-title">{{ 'budgets'|_ }}</h3>
</div>
<div class="box-body no-padding table-responsive">
<table class="table table-hover sortable">
<thead>
<tr>
<th>Budget</th>
{% for year in years %}
<th>{{ year }}</th>
{% endfor %}
</tr>
</thead>
<tbody>
{% for id, info in budgetMultiYear %}
<tr>
<td><a href="{{ route('budgets.show', id) }}">{{ info.name }}</a></td>
{% for amount in info.entries %}
<td>
{{ amount|formatAmount }}
</td>
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
{% endblock %}
{% block styles %}
<link rel="stylesheet" href="css/bootstrap-sortable.css" type="text/css" media="all"/>