From 7d412b20d708c3b924ecaa34d0dacc83c808d8d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Sat, 4 Mar 2023 18:40:00 +0800 Subject: [PATCH] Moved the material floating action button template to add new transactions from the "accounting/transaction/include" directory to the "accounting/include" directory, and renamed it from add-new-material-fab.html to add-txn-material-fab.htm, as it will also be used in the reports, not only the transaction management. --- .../add-txn-material-fab.html} | 2 +- src/accounting/templates/accounting/report/journal.html | 2 +- src/accounting/templates/accounting/transaction/list.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) rename src/accounting/templates/accounting/{transaction/include/add-new-material-fab.html => include/add-txn-material-fab.html} (96%) diff --git a/src/accounting/templates/accounting/transaction/include/add-new-material-fab.html b/src/accounting/templates/accounting/include/add-txn-material-fab.html similarity index 96% rename from src/accounting/templates/accounting/transaction/include/add-new-material-fab.html rename to src/accounting/templates/accounting/include/add-txn-material-fab.html index bd53ce5..8816eb2 100644 --- a/src/accounting/templates/accounting/transaction/include/add-new-material-fab.html +++ b/src/accounting/templates/accounting/include/add-txn-material-fab.html @@ -1,6 +1,6 @@ {# The Mia! Accounting Flask Project -add-new-material-fab.html: The material floating action buttons to add a new transaction +add-txn-material-fab.html: The material floating action buttons to add a new transaction Copyright (c) 2023 imacat. diff --git a/src/accounting/templates/accounting/report/journal.html b/src/accounting/templates/accounting/report/journal.html index 0c15e7c..fb506d1 100644 --- a/src/accounting/templates/accounting/report/journal.html +++ b/src/accounting/templates/accounting/report/journal.html @@ -70,7 +70,7 @@ First written: 2023/3/4 {% with types = report.txn_types %} - {% include "accounting/transaction/include/add-new-material-fab.html" %} + {% include "accounting/include/add-txn-material-fab.html" %} {% endwith %}
diff --git a/src/accounting/templates/accounting/transaction/list.html b/src/accounting/templates/accounting/transaction/list.html index 32f8af4..e212287 100644 --- a/src/accounting/templates/accounting/transaction/list.html +++ b/src/accounting/templates/accounting/transaction/list.html @@ -77,7 +77,7 @@ First written: 2023/2/18
-{% include "accounting/transaction/include/add-new-material-fab.html" %} +{% include "accounting/include/add-txn-material-fab.html" %} {% if list %} {% include "accounting/include/pagination.html" %}