Clean up some views.

This commit is contained in:
James Cole
2016-03-02 20:38:17 +01:00
parent 4f14969464
commit 3d2f33c120
2 changed files with 1 additions and 23 deletions

View File

@@ -26,9 +26,7 @@
</tr>
</thead>
<tbody>
{% set _sum = 0 %}
{% for journal in journals %}
{% set _sum = _sum + journal.amount %}
<tr class="drag" data-date="{{ journal.date.format('Y-m-d') }}" data-id="{{ journal.id }}">
<td class="hidden-xs">
<div class="btn-group btn-group-xs">
@@ -101,26 +99,6 @@
</tr>
{% endfor %}
</tbody>
<tfoot>
{% if showPageSum %}
<tr>
<td colspan="3" style="text-align: right;"><em>{{ 'sum'|_ }}</em></td>
<td colspan="2">{{ _sum|formatAmount }}</td>
</tr>
{% endif %}
{% if showPeriodSum %}
<tr>
<td colspan="3" style="text-align: right;"><em>{{ 'period_sum'|_ }}</em></td>
<td colspan="2">{{ periodSum|formatAmount }}</td>
</tr>
{% endif %}
{% if showTotalSum %}
<tr>
<td colspan="3" style="text-align: right;"><em>{{ 'total_sum'|_ }}</em></td>
<td colspan="2">{{ totalSum|formatAmount }}</td>
</tr>
{% endif %}
</tfoot>
</table>
{{ journals.render|raw }}

View File

@@ -93,7 +93,7 @@
</div>
</div>
<div class="box-body table-responsive no-padding">
{% include 'list/journals.twig' with {'journals': tag.transactionjournals, 'showPageSum' : true} %}
{% include 'list/journals.twig' with {'journals': tag.transactionjournals} %}
</div>
</div>
</div>