From 7182909e289313fbe725973583ca1d70f74c64c0 Mon Sep 17 00:00:00 2001 From: James Cole Date: Wed, 26 Oct 2016 16:54:52 +0200 Subject: [PATCH] Keep the box [skip ci] --- resources/views/reports/default/month.twig | 19 ++++- .../views/reports/default/multi-year.twig | 9 +- resources/views/reports/default/year.twig | 9 +- .../views/reports/partials/categories.twig | 85 +++++++++---------- resources/views/reports/partials/income.twig | 83 +++++++++--------- 5 files changed, 109 insertions(+), 96 deletions(-) diff --git a/resources/views/reports/default/month.twig b/resources/views/reports/default/month.twig index 2f67fd62f7..ccc14c3877 100644 --- a/resources/views/reports/default/month.twig +++ b/resources/views/reports/default/month.twig @@ -22,7 +22,14 @@
-
+
+
+
+

{{ 'income'|_ }}

+
+
+
+
@@ -39,8 +46,14 @@ {% include 'reports/partials/budgets.twig' %}
-
- {# {% include 'reports/partials/categories.twig' %} #} +
+
+
+

{{ 'categories'|_ }}

+
+
+
+
diff --git a/resources/views/reports/default/multi-year.twig b/resources/views/reports/default/multi-year.twig index d77e17636d..5ce435fbf8 100644 --- a/resources/views/reports/default/multi-year.twig +++ b/resources/views/reports/default/multi-year.twig @@ -33,7 +33,14 @@
-
+
+
+
+

{{ 'income'|_ }}

+
+
+
+
diff --git a/resources/views/reports/default/year.twig b/resources/views/reports/default/year.twig index c65d56d98a..bbd280301b 100644 --- a/resources/views/reports/default/year.twig +++ b/resources/views/reports/default/year.twig @@ -36,7 +36,14 @@
-
+
+
+
+

{{ 'income'|_ }}

+
+
+
+
diff --git a/resources/views/reports/partials/categories.twig b/resources/views/reports/partials/categories.twig index ddbe1648f2..a09cbe2c7c 100644 --- a/resources/views/reports/partials/categories.twig +++ b/resources/views/reports/partials/categories.twig @@ -1,48 +1,41 @@ -
-
-

{{ 'categories'|_ }}

-
-
- - +
+ + + + + + + + {% for cat in categories.getCategories %} + {% if loop.index > listLength %} + + {% else %} - - - - - - {% for cat in categories.getCategories %} - {% if loop.index > listLength %} - - {% else %} - - {% endif %} - - - - - {% endfor %} - - - {% if categories.getCategories.count > expenseTopLength %} - - - - {% endif %} + {% endif %} + + + + + {% endfor %} + + + {% if categories.getCategories.count > expenseTopLength %} + + + + {% endif %} - - - - - -
{{ 'category'|_ }}{{ 'spent'|_ }}
{{ 'categories'|_ }}{{ 'spent'|_ }}
- {{ cat.name }} - {{ cat.spent|formatAmount }} - -
- {{ trans('firefly.show_full_list',{number:incomeTopLength}) }} -
+ {{ cat.name }} + {{ cat.spent|formatAmount }} + +
+ {{ trans('firefly.show_full_list',{number:incomeTopLength}) }} +
{{ 'sum'|_ }}{{ categories.getTotal|formatAmount }}
-
-
+ + {{ 'sum'|_ }} + {{ categories.getTotal|formatAmount }} + + + diff --git a/resources/views/reports/partials/income.twig b/resources/views/reports/partials/income.twig index 6d47763b9f..3428b0a33a 100644 --- a/resources/views/reports/partials/income.twig +++ b/resources/views/reports/partials/income.twig @@ -1,46 +1,39 @@ -
-
-

{{ 'income'|_ }}

-
-
- - - {% for income in incomes.getIncomes %} - {% if loop.index > listLength %} - - {% else %} - - {% endif %} - - - - - {% endfor %} - - - {% if incomes.getIncomes|length > listLength %} - - - - {% endif %} +
- {{ income.name }} - {% if income.count > 1 %} -
- - {{ income.count }} {{ 'transactions'|_|lower }} - - - - {% endif %} -
{{ income.amount|formatAmount }}
- {{ trans('firefly.show_full_list',{ number:listLength } ) }} -
+ + {% for income in incomes.getIncomes %} + {% if loop.index > listLength %} + + {% else %} - - - - -
{{ 'sum'|_ }}{{ incomes.getTotal|formatAmount }}
-
-
+ {% endif %} + + {{ income.name }} + {% if income.count > 1 %} +
+ + {{ income.count }} {{ 'transactions'|_|lower }} + + + + {% endif %} + + + {{ income.amount|formatAmount }} + + {% endfor %} + + + {% if incomes.getIncomes|length > listLength %} + + + {{ trans('firefly.show_full_list',{ number:listLength } ) }} + + + {% endif %} + + {{ 'sum'|_ }} + {{ incomes.getTotal|formatAmount }} + + +