X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/ledger2?a=blobdiff_plain;ds=sidebyside;f=templates%2F_macros.html;h=55ab626b1fe6bbb7f49b3ab41c9dbb24bf56d792;hb=db62e6559fdd577dae38d4b6f5cbd5ef6a14cc57;hp=b1f0104e134363bc9b8dcd24f6d6066d08996f00;hpb=5383b5cf1520a1cb66b4966dd4ee449a99f5e465;p=plomtask diff --git a/templates/_macros.html b/templates/_macros.html index b1f0104..55ab626 100644 --- a/templates/_macros.html +++ b/templates/_macros.html @@ -1,16 +1,27 @@ {% macro edit_buttons() %} +
{% endmacro %} -{% macro datalist_of_titles(title, candidates) %} +{% macro datalist_of_titles(title, candidates, historical=false, with_comments=false) %} {% endmacro %} @@ -18,6 +29,7 @@ {% macro simple_checkbox_table(title, items, type_name, list_name, add_string="add", historical=false) %} +{% if items|length > 0 %}-{% if historical %}{{item.title_then}}{% else %}{{item.title.newest|e}}{% endif %} +{% if historical is true %}{{item.title_then}}{% else %}{{item.title.newest|e}}{% endif %} |