X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bdeck_id%7D%7D/cards/%7B%7Bcard_id%7D%7D/form?a=blobdiff_plain;f=templates%2F_macros.html;h=14395914052efd6511eddc6cc82bbe947dda62c4;hb=214aeb0f2e29712518dc776b0713bcdbb8945a2f;hp=cb1bb452d16f3671ab7108a159b1c581ec063890;hpb=8542cd471f1aeea1abbe0b237a94f7863fb12dd0;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 %}