{% with txn_types = report.txn_types %}
@@ -73,12 +44,11 @@ First written: 2023/3/7
{% endwith %}
- {% include "accounting/report/include/report-chooser.html" %}
- {% include "accounting/report/include/currency-chooser.html" %}
-
+ {% with use_report_chooser = true,
+ use_currency_chooser = true,
+ use_period_chooser = true %}
+ {% include "accounting/report/include/action-buttons.html" %}
+ {% endwith %}
{% with period = report.period, period_chooser = report.period_chooser %}
diff --git a/src/accounting/templates/accounting/report/include/action-buttons.html b/src/accounting/templates/accounting/report/include/action-buttons.html
new file mode 100644
index 0000000..968bcc3
--- /dev/null
+++ b/src/accounting/templates/accounting/report/include/action-buttons.html
@@ -0,0 +1,121 @@
+{#
+The Mia! Accounting Flask Project
+action-buttons.html: The action buttons on the report
+
+ Copyright (c) 2023 imacat.
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+Author: imacat@mail.imacat.idv.tw (imacat)
+First written: 2023/3/8
+#}
+{% if use_add_new %}
+ {% if accounting_can_edit() %}
+
+{% endif %}
+{% if use_period_chooser %}
+
+{% endif %}
+{% if use_search %}
+
+{% endif %}
+
+
+ {{ A_("Download") }}
+
diff --git a/src/accounting/templates/accounting/report/include/currency-chooser.html b/src/accounting/templates/accounting/report/include/currency-chooser.html
deleted file mode 100644
index 84123c6..0000000
--- a/src/accounting/templates/accounting/report/include/currency-chooser.html
+++ /dev/null
@@ -1,36 +0,0 @@
-{#
-The Mia! Accounting Flask Project
-currency-chooser.html: The currency chooser in the action buttons
-
- Copyright (c) 2023 imacat.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
-Author: imacat@mail.imacat.idv.tw (imacat)
-First written: 2023/3/8
-#}
-
diff --git a/src/accounting/templates/accounting/report/include/report-chooser.html b/src/accounting/templates/accounting/report/include/report-chooser.html
deleted file mode 100644
index 93bb815..0000000
--- a/src/accounting/templates/accounting/report/include/report-chooser.html
+++ /dev/null
@@ -1,38 +0,0 @@
-{#
-The Mia! Accounting Flask Project
-report-chooser.html: The report chooser
-
- Copyright (c) 2023 imacat.
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-
-Author: imacat@mail.imacat.idv.tw (imacat)
-First written: 2023/3/4
-#}
-