X-Git-Url: https://plomlompom.com/repos/feed.xml?a=blobdiff_plain;f=templates%2F_macros.html;fp=templates%2F_macros.html;h=b1f0104e134363bc9b8dcd24f6d6066d08996f00;hb=5383b5cf1520a1cb66b4966dd4ee449a99f5e465;hp=25d94c58ce72a0a52f483c3251a30f9c3496ab51;hpb=f8b17d94a1867e7cc01782c9301ccb718de0f9c2;p=plomtask diff --git a/templates/_macros.html b/templates/_macros.html index 25d94c5..b1f0104 100644 --- a/templates/_macros.html +++ b/templates/_macros.html @@ -17,7 +17,7 @@ -{% 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) %} {% for item in items %} @@ -25,7 +25,7 @@ {% endfor %}
-{{item.title.newest|e}} +{% if historical %}{{item.title_then}}{% else %}{{item.title.newest|e}}{% endif %}