X-Git-Url: https://plomlompom.com/repos/condition_titles?a=blobdiff_plain;f=templates%2Fday.html;h=82eaa56fb7b9acfd6aa55b7db39f080f15459ce4;hb=5195f3f36960b76d1b6530ef1822d0806db221d8;hp=51829b2282146c09fb9ec175103f4fe2944378f9;hpb=e51477ebea9fb701d88de85088b2fda1247c73a2;p=plomtask
diff --git a/templates/day.html b/templates/day.html
index 51829b2..82eaa56 100644
--- a/templates/day.html
+++ b/templates/day.html
@@ -1,6 +1,48 @@
{% extends 'base.html' %}
+{% macro todo_with_children(todo, indent) %}
+
{% 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 %}
{{day.date}} / {{day.weekday}}
+
+prev | next
+
+
+conditions
+{% for node in conditions_listing %}
+[{% if node['condition'].is_active %}x{% else %} {% endif %}] {{node['condition'].title.newest|e}}
+
+{% for enabler in node['enablers'] %}
+- [+] {{enabler.process.title.newest|e}}
+{% endfor %}
+{% for disabler in node['disablers'] %}
+- [-] {{disabler.process.title.newest|e}}
+{% endfor %}
+
+
+{% endfor %}
+todos
+
+{% for todo in todos %}
+{{ todo_with_children(todo, 0) }}
+{% endfor %}
+
{% endblock %}