Fixed the layout in the option detail when there is no recurring expenses or incomes.

This commit is contained in:
依瑪貓 2023-03-23 00:24:57 +08:00
parent 2859f628ea
commit c4ff4ecb3d

View File

@ -19,11 +19,13 @@ detail-recurring-expense-income.html: The recurring expense or income in the opt
Author: imacat@mail.imacat.idv.tw (imacat) Author: imacat@mail.imacat.idv.tw (imacat)
First written: 2023/3/22 First written: 2023/3/22
#} #}
<div id="accounting-recurring-{{ expense_income }}" class="form-control mb-3 accounting-material-text-field accounting-not-empty"> <div id="accounting-recurring-{{ expense_income }}" class="form-control mb-3 accounting-material-text-field {% if recurring_items %} accounting-not-empty {% endif %}">
<label class="form-label" for="accounting-recurring-{{ expense_income }}">{{ label }}</label> <label class="form-label" for="accounting-recurring-{{ expense_income }}">{{ label }}</label>
{% if recurring_items %}
<ul class="list-group mb-2 mt-2"> <ul class="list-group mb-2 mt-2">
{% for item in recurring_items %} {% for item in recurring_items %}
{% include "accounting/option/include/detail-recurring-item.html" %} {% include "accounting/option/include/detail-recurring-item.html" %}
{% endfor %} {% endfor %}
</ul> </ul>
{% endif %}
</div> </div>