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"> <table class="table table-hover sortable">
<thead> <thead>
<tr> <tr>
<th data-defaultsign="az">{{ 'budget'|_ }}</th> <th data-defaultsign="az" colspan="2">{{ 'budget'|_ }}</th>
{% for period in periods %} {% for period in periods %}
<th data-defaultsign="_19">{{ period }}</th> <th data-defaultsign="_19">{{ period }}</th>
{% endfor %} {% endfor %}
@ -11,6 +11,9 @@
<tbody> <tbody>
{% for id, info in report %} {% for id, info in report %}
<tr> <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 }}"> <td data-value="{{ info.name }}">
<a title="{{ info.name }}" href="#" data-budget="{{ id }}" class="budget-chart-activate">{{ info.name }}</a> <a title="{{ info.name }}" href="#" data-budget="{{ id }}" class="budget-chart-activate">{{ info.name }}</a>
</td> </td>

View File

@ -1,7 +1,7 @@
<table class="table table-hover sortable table-condensed"> <table class="table table-hover sortable table-condensed">
<thead> <thead>
<tr> <tr>
<th data-defaultsort="disabled">{{ 'category'|_ }}</th> <th data-defaultsort="disabled" colspan="2">{{ 'category'|_ }}</th>
{% for period in periods %} {% for period in periods %}
<th data-defaultsort="disabled">{{ period }}</th> <th data-defaultsort="disabled">{{ period }}</th>
{% endfor %} {% endfor %}
@ -11,10 +11,12 @@
<tbody> <tbody>
{% for id, info in report %} {% for id, info in report %}
<tr> <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 }}"> <td data-value="{{ info.name }}">
<a title="{{ info.name }}" href="#" data-category="{{ id }}" class="category-chart-activate">{{ info.name }}</a> <a title="{{ info.name }}" href="#" data-category="{{ id }}" class="category-chart-activate">{{ info.name }}</a>
</td> </td>
{% for key, period in periods %} {% for key, period in periods %}
{# income first #} {# income first #}
{% if(info.entries[key]) %} {% if(info.entries[key]) %}