X-Git-Url: https://plomlompom.com/repos/?a=blobdiff_plain;f=templates%2F_macros.html;fp=templates%2F_macros.html;h=14395914052efd6511eddc6cc82bbe947dda62c4;hb=214aeb0f2e29712518dc776b0713bcdbb8945a2f;hp=cb1bb452d16f3671ab7108a159b1c581ec063890;hpb=eea64af900512aaa83146a02f6e7c6d0092b5b3a;p=plomtask diff --git a/templates/_macros.html b/templates/_macros.html index cb1bb45..1439591 100644 --- a/templates/_macros.html +++ b/templates/_macros.html @@ -18,6 +18,7 @@ {% macro simple_checkbox_table(title, items, type_name, list_name, add_string="add", historical=false) %} +{% if items|length > 0 %} {% for item in items %} @@ -30,7 +31,8 @@ {% endfor %}
-{{add_string}}: +{% endif %} +{{add_string}}: {% endmacro %}