{% extends 'base.html' %} {% block css %} tr.toplevel th { padding-right: 1em; } td.center { text-align: center; } tr.toplevel td, tr.toplevel th { padding-top: 1em; } tr.lowlevel td, tr.lowlevel th { padding-top: 0em; } tr.grey td { background-color: #cccccc; } {% endblock %} {% macro draw_todo(todo) %}{{todo.title}}{% if todo.comment %}({{todo.comment|e}}){% endif %}{% endmacro %} {% macro task_with_deps(task, indent) %} {% for i in range(indent) %}  {% endfor %}+ ({{task.title.then}})
{% for t in task.deps %} {{ task_with_deps(t, indent+1) }} {% endfor %} {% endmacro %} {% macro todo_with_deps(todo, indent) %} {% for i in range(indent) %}   {% endfor %}{{ macros.doneness_string(todo) }} {{ draw_todo(todo) }}
{% for dep in todo.deps %} {% if dep.been_observed %} {% for i in range(indent+1) %}   {% endfor %}{{ macros.doneness_string(dep) }} ({{ draw_todo(dep) }})
{% else %} {{ todo_with_deps(dep, indent+1) }} {% endif %} {% endfor %} {{ todo.observe() }} {% endmacro %} {% macro draw_deps(deps) %} {% for t in deps %} {{ macros.doneness_string(t) }} {% if t.deps and not t.been_observed %}
{{ draw_todo(t) }} {% for dep in t.deps %} {{ todo_with_deps(dep, 0) }} {% endfor %}
{% else %} {{ draw_todo(t) }} {% endif %} {{ t.observe() }} {% endfor %} {% endmacro %} {% block content %}

edit todo

{{ macros.datalist_tasks(filtered_tasks) }}
task {{ todo.task.title.then|e }} {% if todo.task.comment %}
{{ todo.task.comment|e }}
{% else %}
  {% endif %}
work done
(all days: {{todo.all_days_effort}})
(dependencies: {{todo.all_days_effort}})
{% for date, effort in todo.efforts.items() %} {% endfor %}
date effort delete
{{date}} {% if not (todo.deps and effort) %}{% endif %}
comment
tags new: {{ macros.tagselection(submit_name='tag', selected_tags=todo.day_tags, all_tags=tags) }} {% for tag in todo.task.tags.now | sort %}{% endfor %}
dependers {% if todo.dependers %} {% for path in todo.shortened_depender_paths %} {% endfor %}
{% if not path[0] %}[…]
{% endif %} {% for step in path %} {% if step %} {% if step.dependers %}➛ {% endif %}{{step.title}}
{% endif %} {% endfor %}
{% endif %} add:
sub-todos {% for dep_slot in dep_slots %} {% if dep_slot.todos %} {{ draw_deps(dep_slot.todos) }} {% else %} {% endif %} {% endfor %} {% if additional_deps %} {{ draw_deps(additional_deps) }} {% endif %}
expected:
[ ] {% if dep_slot.task.deps %}
({{dep_slot.task.title.then}}) {% for task in dep_slot.task.deps %} {{ task_with_deps(task, 1) }} {% endfor %}
{% else %} ({{dep_slot.task.title.then}}) {% endif %}
bonus:
suggestions {% if todo.task.deps %} {% for dep in todo.task.deps %} {% for suggested_todo in suggested_todos[dep.id_] %} {% endfor %} {% endfor %}
make new {{dep.title.then}}
adopt {{suggested_todo.day.date}}:{{suggested_todo.title}}{% if suggested_todo.deps %}:+{% endif %} {{suggested_todo.comment}}
{% endif %}
free add make from task ({{ macros.parenthood_selector(parenthood) }}):

adopt:
{% for t in filtered_todos %} {% endfor %}
as chain {% for dep in todo.deps_chain %} {% endfor %}
{{dep.deps_depth}} {% if dep.deps_done %}{{ macros.doneness_string(dep) }}{% endif %} {{ draw_todo(dep) }}
{% endblock %}