X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=templates%2Fday.html;h=da5e17ae91d239e4d95a3893c5f34d31837b3ebd;hb=2ca0045683f74254fd0e248c2567fa2efa358c08;hp=a0823f33e16fb218d3212756fb3fe11bb9c8cfb3;hpb=12be63c6ef58282cb6b7d5b7bc2eabe8946a1bfc;p=plomtask diff --git a/templates/day.html b/templates/day.html index a0823f3..da5e17a 100644 --- a/templates/day.html +++ b/templates/day.html @@ -1,4 +1,5 @@ -{% extends 'base.html' %} +{% extends '_base.html' %} +{% import '_macros.html' as macros %} @@ -106,11 +107,6 @@ td.todo_line { comment:
add todo: - -{% for process in processes %} - -{% endfor %} -

todo

@@ -148,13 +144,9 @@ add todo: {% endif %} {% endfor %} - - - -{% for process in enablers_for[condition.id_] %} - -{% endfor %} - +{% set list_name = "todos_for_%s"|format(condition.id_) %} + +{{ macros.datalist_of_direct_titles(list_name, enablers_for[condition.id_]) }} {% endfor %} @@ -184,5 +176,6 @@ add todo: -{% endblock %} +{{ macros.datalist_of_direct_titles("processes", processes) }} +{% endblock %}