X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=templates%2Fday.html;h=89290582486b54042d073d8092477cfe185391a4;hb=47108bf733ec32c54710e30b50a71084a5c396cd;hp=f6e22650ddc57fd1e0553e01e9f3f4d73c5dd794;hpb=91a2a8f0fe640dac8c76515bf3fd04b0c2f49a66;p=plomtask diff --git a/templates/day.html b/templates/day.html index f6e2265..8929058 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_titles(list_name, enablers_for[condition.id_]) }} {% endfor %} @@ -184,5 +176,6 @@ add todo: -{% endblock %} +{{ macros.datalist_of_titles("processes", processes) }} +{% endblock %}