From 52b5151fe0b7e0ecac8981aa5f22ba028dce3e20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Wed, 8 Mar 2023 07:49:34 +0800 Subject: [PATCH] Added the currency-chooser.html template to simplify the templates of the report. --- .../accounting/report/balance-sheet.html | 31 ++-------------- .../report/include/currency-chooser.html | 36 +++++++++++++++++++ .../accounting/report/income-expenses.html | 31 ++-------------- .../accounting/report/income-statement.html | 31 ++-------------- .../templates/accounting/report/ledger.html | 31 ++-------------- .../accounting/report/trial-balance.html | 31 ++-------------- 6 files changed, 46 insertions(+), 145 deletions(-) create mode 100644 src/accounting/templates/accounting/report/include/currency-chooser.html diff --git a/src/accounting/templates/accounting/report/balance-sheet.html b/src/accounting/templates/accounting/report/balance-sheet.html index ff57ad5..70d1228 100644 --- a/src/accounting/templates/accounting/report/balance-sheet.html +++ b/src/accounting/templates/accounting/report/balance-sheet.html @@ -59,21 +59,7 @@ First written: 2023/3/7 {% with report_chooser = report.report_chooser %} {% include "accounting/report/include/report-chooser.html" %} {% endwith %} -
- - -
+ {% include "accounting/report/include/currency-chooser.html" %} - - + {% include "accounting/report/include/currency-chooser.html" %} + + diff --git a/src/accounting/templates/accounting/report/income-expenses.html b/src/accounting/templates/accounting/report/income-expenses.html index b70c96e..1d09b7d 100644 --- a/src/accounting/templates/accounting/report/income-expenses.html +++ b/src/accounting/templates/accounting/report/income-expenses.html @@ -60,21 +60,7 @@ First written: 2023/3/5 {% with report_chooser = report.report_chooser %} {% include "accounting/report/include/report-chooser.html" %} {% endwith %} -
- - -
+ {% include "accounting/report/include/currency-chooser.html" %}
- -
+ {% include "accounting/report/include/currency-chooser.html" %}
- -
+ {% include "accounting/report/include/currency-chooser.html" %} - - + {% include "accounting/report/include/currency-chooser.html" %} - - + {% include "accounting/report/include/currency-chooser.html" %}
- -
+ {% include "accounting/report/include/currency-chooser.html" %}
- -
+ {% include "accounting/report/include/currency-chooser.html" %} - - + {% include "accounting/report/include/currency-chooser.html" %}