From c4ff4ecb3d57790c193f7e6a4c21de1e543f51bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BE=9D=E7=91=AA=E8=B2=93?= Date: Thu, 23 Mar 2023 00:24:57 +0800 Subject: [PATCH] Fixed the layout in the option detail when there is no recurring expenses or incomes. --- .../include/detail-recurring-expense-income.html | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/accounting/templates/accounting/option/include/detail-recurring-expense-income.html b/src/accounting/templates/accounting/option/include/detail-recurring-expense-income.html index b1aac4b..71e3468 100644 --- a/src/accounting/templates/accounting/option/include/detail-recurring-expense-income.html +++ b/src/accounting/templates/accounting/option/include/detail-recurring-expense-income.html @@ -19,11 +19,13 @@ detail-recurring-expense-income.html: The recurring expense or income in the opt Author: imacat@mail.imacat.idv.tw (imacat) First written: 2023/3/22 #} -
+
-
    - {% for item in recurring_items %} - {% include "accounting/option/include/detail-recurring-item.html" %} - {% endfor %} -
+ {% if recurring_items %} +
    + {% for item in recurring_items %} + {% include "accounting/option/include/detail-recurring-item.html" %} + {% endfor %} +
+ {% endif %}