X-Git-Url: https://plomlompom.com/repos/pick_tasks?a=blobdiff_plain;f=templates%2F_macros.html;h=14395914052efd6511eddc6cc82bbe947dda62c4;hb=83c31bdf2a1b2cd1f3beadee482feb91c64759f9;hp=25d94c58ce72a0a52f483c3251a30f9c3496ab51;hpb=f59afccd32d45e60c48d451e6b8304a817627c62;p=plomtask diff --git a/templates/_macros.html b/templates/_macros.html index 25d94c5..1439591 100644 --- a/templates/_macros.html +++ b/templates/_macros.html @@ -17,7 +17,8 @@ -{% macro simple_checkbox_table(title, items, type_name, list_name, add_string="add") %} +{% macro simple_checkbox_table(title, items, type_name, list_name, add_string="add", historical=false) %} +{% if items|length > 0 %} {% for item in items %} @@ -25,12 +26,13 @@ {% endfor %}
-{{item.title.newest|e}} +{% if historical is true %}{{item.title_then}}{% else %}{{item.title.newest|e}}{% endif %}
-{{add_string}}: +{% endif %} +{{add_string}}: {% endmacro %}