X-Git-Url: https://plomlompom.com/repos/condition_titles?a=blobdiff_plain;f=templates%2Fday.html;h=82eaa56fb7b9acfd6aa55b7db39f080f15459ce4;hb=34741b65438149b4e02f1e2bb4f8fdba5df5a667;hp=5547f4534e94742600f0664aaece2b7cdc33afc3;hpb=bf8b491d50379772879f1cc9cbe6846fe50ce63b;p=plomtask
diff --git a/templates/day.html b/templates/day.html
index 5547f45..82eaa56 100644
--- a/templates/day.html
+++ b/templates/day.html
@@ -1,7 +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}}
-comment: {{day.comment|e}}
+
+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 %}