Expand view.

This commit is contained in:
James Cole 2016-12-07 21:38:35 +01:00
parent efe290d96c
commit 36ebd0f0ee
2 changed files with 8 additions and 3 deletions

View File

@ -1,7 +1,7 @@
<table class="table table-hover sortable">
<thead>
<tr>
<th data-defaultsign="az">{{ 'budget'|_ }}</th>
<th data-defaultsign="az" colspan="2">{{ 'budget'|_ }}</th>
{% for period in periods %}
<th data-defaultsign="_19">{{ period }}</th>
{% endfor %}
@ -11,6 +11,9 @@
<tbody>
{% for id, info in report %}
<tr>
<td>
<a class="btn btn-default btn-xs" href="{{ route('budgets.show', [id]) }}"><i class="fa fa-external-link" aria-hidden="true"></i></a>
</td>
<td data-value="{{ info.name }}">
<a title="{{ info.name }}" href="#" data-budget="{{ id }}" class="budget-chart-activate">{{ info.name }}</a>
</td>

View File

@ -1,7 +1,7 @@
<table class="table table-hover sortable table-condensed">
<thead>
<tr>
<th data-defaultsort="disabled">{{ 'category'|_ }}</th>
<th data-defaultsort="disabled" colspan="2">{{ 'category'|_ }}</th>
{% for period in periods %}
<th data-defaultsort="disabled">{{ period }}</th>
{% endfor %}
@ -11,10 +11,12 @@
<tbody>
{% for id, info in report %}
<tr>
<td>
<a class="btn btn-default btn-xs" href="{{ route('categories.show', [id]) }}"><i class="fa fa-external-link" aria-hidden="true"></i></a>
</td>
<td data-value="{{ info.name }}">
<a title="{{ info.name }}" href="#" data-category="{{ id }}" class="category-chart-activate">{{ info.name }}</a>
</td>
{% for key, period in periods %}
{# income first #}
{% if(info.entries[key]) %}