X-Git-Url: https://plomlompom.com/repos/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bdeck_id%7D%7D/cards/%7B%7Bcard_id%7D%7D/form?a=blobdiff_plain;f=templates%2Fday.html;h=637e08d94ad2e72da8fbcbd009b0c428131edaee;hb=12195a1fe2c15334c866036eaa171eb8e92f0408;hp=7a34e58544f1c93a871bc316962d2bf60040b5d2;hpb=12bbfea600184c9e2657cc9a0c705848a4dae29a;p=plomtask diff --git a/templates/day.html b/templates/day.html index 7a34e58..637e08d 100644 --- a/templates/day.html +++ b/templates/day.html @@ -1,5 +1,12 @@ {% 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 %} +{% endmacro %} + {% block content %}

    {{day.date}} / {{day.weekday}}

    @@ -7,7 +14,18 @@

    comment: - +
    +add todo: + +{% for process in processes %} + +{% endfor %} +
    + {% endblock %}