From f22a9799a15a13668fcc4d717b1ade70c33ba29b Mon Sep 17 00:00:00 2001 From: James Cole Date: Sun, 3 Apr 2016 14:01:27 +0200 Subject: [PATCH] Hide some fields. --- resources/views/popup/list/journals.twig | 18 +++++++++++++----- .../views/popup/report/balance-amount.twig | 2 ++ .../popup/report/budget-spent-amount.twig | 1 + .../views/popup/report/category-entry.twig | 1 + .../views/popup/report/expense-entry.twig | 1 + resources/views/popup/report/income-entry.twig | 2 ++ 6 files changed, 20 insertions(+), 5 deletions(-) diff --git a/resources/views/popup/list/journals.twig b/resources/views/popup/list/journals.twig index 6f042ddcce..64d425c32a 100644 --- a/resources/views/popup/list/journals.twig +++ b/resources/views/popup/list/journals.twig @@ -5,15 +5,19 @@ {{ trans('list.description') }} {{ trans('list.amount') }} {{ trans('list.date') }} - {{ trans('list.from') }} + {% if not hideSource %} + {{ trans('list.from') }} + {% endif %} + {% if not hideDestination %} {{ trans('list.to') }} + {% endif %} - {% if not hideBudgets %} + {% if not hideBudget %} {% endif %} - {% if not hideCategories %} + {% if not hideCategory %} {% endif %} @@ -33,6 +37,7 @@ {{ journal.date.formatLocalized(monthAndDayFormat) }} + {% if not hideSource %} {% if journal.source_account_type == 'Cash account' %} (cash) @@ -40,6 +45,8 @@ {{ journal.source_account_name }} {% endif %} + {% endif %} + {% if not hideDestination %} {% if journal.destination_account_type == 'Cash account' %} (cash) @@ -47,9 +54,10 @@ {{ journal.destination_account_name }} {% endif %} + {% endif %} - {% if not hideBudgets %} + {% if not hideBudget %} {% if journal.budgets[0] %} {{ journal.budgets[0].name }} @@ -58,7 +66,7 @@ {% endif %} - {% if not hideCategories %} + {% if not hideCategory %} {% if journal.categories[0] %} {{ journal.categories[0].name }} diff --git a/resources/views/popup/report/balance-amount.twig b/resources/views/popup/report/balance-amount.twig index a1a645b41d..ad6c20490a 100644 --- a/resources/views/popup/report/balance-amount.twig +++ b/resources/views/popup/report/balance-amount.twig @@ -6,6 +6,8 @@