X-Git-Url: https://plomlompom.com/repos/feed.xml?a=blobdiff_plain;f=templates%2F_macros.html;h=55ab626b1fe6bbb7f49b3ab41c9dbb24bf56d792;hb=f02e0fc13b49dc5b38924ba3ad8c485007a72cb2;hp=25d94c58ce72a0a52f483c3251a30f9c3496ab51;hpb=f59afccd32d45e60c48d451e6b8304a817627c62;p=plomtask diff --git a/templates/_macros.html b/templates/_macros.html index 25d94c5..55ab626 100644 --- a/templates/_macros.html +++ b/templates/_macros.html @@ -1,23 +1,35 @@ {% macro edit_buttons() %} +
{% endmacro %} -{% macro datalist_of_titles(title, candidates) %} +{% macro datalist_of_titles(title, candidates, historical=false, with_comments=false) %} {% endmacro %} -{% 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 %}-{{item.title.newest|e}} +{% if historical is true %}{{item.title_then}}{% else %}{{item.title.newest|e}}{% endif %} |