X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;ds=inline;f=templates%2Fday.html;h=82eaa56fb7b9acfd6aa55b7db39f080f15459ce4;hb=89624d5e05480c832a079008bbb9992f411be0dd;hp=0953d52446555fb695f021121ac3c9798827597d;hpb=63249f5d7cefb97574610848ca3473cb1f9687e2;p=plomtask diff --git a/templates/day.html b/templates/day.html index 0953d52..82eaa56 100644 --- a/templates/day.html +++ b/templates/day.html @@ -1,10 +1,13 @@ {% extends 'base.html' %} {% macro todo_with_children(todo, indent) %} -
  • {% for i in range(indent) %}+{% endfor %}{{todo.process.title.newest|e}} +
  • {% for i in range(indent) %}+{% endfor %} [{% if todo.is_done %}x{% else %} {% endif %}] {{todo.process.title.newest|e}} {% for child in todo.children %} {{ todo_with_children(child, indent+1) }} {% endfor %} +{% for condition in todo.conditions %} +
  • {% for i in range(indent+1) %}+{% endfor %} [{% if condition.is_active %}x{% else %} {% endif %}] {{condition.title.newest|e}} +{% endfor %} {% endmacro %} {% block content %} @@ -22,6 +25,20 @@ add todo: {% endfor %} +

    conditions

    +{% for node in conditions_listing %} +
  • [{% if node['condition'].is_active %}x{% else %} {% endif %}] {{node['condition'].title.newest|e}} + +
  • +{% endfor %} +

    todos