X-Git-Url: https://plomlompom.com/repos/feed.xml?a=blobdiff_plain;ds=sidebyside;f=templates%2Ftodo.html;h=c2fb01d710d8d9d0081d70e124f3a38d241ec7e3;hb=3b15110c22c17d938d182a3d1a37b81b875c397f;hp=44cdfa7eec24de0db04dd1eaa3984fa3abea41d4;hpb=12be63c6ef58282cb6b7d5b7bc2eabe8946a1bfc;p=plomtask diff --git a/templates/todo.html b/templates/todo.html index 44cdfa7..c2fb01d 100644 --- a/templates/todo.html +++ b/templates/todo.html @@ -1,128 +1,122 @@ -{% extends 'base.html' %} +{% extends '_base.html' %} +{% import '_macros.html' as macros %} + + + +{% block css %} +select{ font-size: 0.5em; margin: 0; padding: 0; } +{% endblock %} + + + +{% macro draw_tree_row(item, parent_todo, indent=0) %} + + +{% if item.todo %} +{% if not item.process %}+{% else %} {% endif %} 0 %}disabled{% endif %}/> +{% endif %} + + +{% for i in range(indent-1) %}  {%endfor %}{% if indent > 0 %}·{% endif %} +{% if item.todo %} +{{item.todo.title_then|e}} +{% else %} +{{item.process.title.newest|e}} +{% if indent == 0 %} +· fill: +{% endif %} +{% endif %} + + +{% for child in item.children %} +{{ draw_tree_row(child, item, indent+1) }} +{% endfor %} +{% endmacro %} {% block content %} -

Todo: {{todo.process.title.newest|e}}

+

Todo: {{todo.title_then|e}}

- +
- - - + + + + + - - + - - - + + + - - - - - - - - - + -
day {{todo.date}}
process {{todo.process.title.newest|e}}
done
+{% if not todo.is_doable and todo.is_done %}{% endif %} +
effort
comment
conditions - -{% for condition in todo.conditions %} + + - - + + -{% endfor %} -
calendarize +
- - -{{condition.title.newest|e}} -conditions{{ macros.simple_checkbox_table("condition", todo.conditions, "condition", "condition_candidates") }}
-add: -
blockers{{ macros.simple_checkbox_table("blocker", todo.blockers, "condition", "condition_candidates") }}
enables - -{% for condition in todo.enables %} - - - + -{% endfor %} -
- - -{{condition.title.newest|e}} -{{ macros.simple_checkbox_table("enables", todo.enables, "condition", "condition_candidates") }}
-add: -
disables - -{% for condition in todo.disables%} - - - + -{% endfor %} -
- - -{{condition.title.newest|e}} -{{ macros.simple_checkbox_table("disables", todo.disables, "condition", "condition_candidates") }}
-add: -
parents {% for parent in todo.parents %} -{{parent.process.title.newest|e}}
+{{parent.title_then|e}}
{% endfor %}
childrendescendants +{% if steps_todo_to_process|length > 0 %} -{% for child in todo.children %} - - - - +{% for step in steps_todo_to_process %} +{{ draw_tree_row(step, todo) }} {% endfor %}
{{child.process.title.newest|e}}
-adopt: +{% endif %} +adopt:
+make empty:
+make full:
- -
- -
-
- -{% for condition_candidate in condition_candidates %} - -{% endfor %} - - -{% for candidate in todo_candidates %} - -{% endfor %} - +{{ macros.edit_buttons() }} + +{{ macros.datalist_of_titles("condition_candidates", condition_candidates) }} +{{ macros.datalist_of_titles("process_candidates", process_candidates) }} +{{ macros.datalist_of_titles("todo_candidates", todo_candidates, historical=true, with_comments=true) }} {% endblock %}