X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/ledger2?a=blobdiff_plain;f=todo_templates%2Ftask.html;h=3128d75c6ff1a6cfb7fdca5bfb531d31098fea60;hb=ecee822bebf62049803b90fc8d8a0b484915a0fc;hp=56d0abea8d44029df030ed5c40360a361682f901;hpb=53b84307929582af2aaeac2247cc57db4a7bedf4;p=misc diff --git a/todo_templates/task.html b/todo_templates/task.html index 56d0abe..3128d75 100644 --- a/todo_templates/task.html +++ b/todo_templates/task.html @@ -1,47 +1,178 @@ {% extends 'base.html' %} + + + {% block css %} -th, td { vertical-align: top; text-align: left} -td.input { width: 100%; } -td.checkbox { width: 0.1em; height: 0.1em; padding: 0em; text-align: center; } -input[type="number"] { text-align: right; } -input[type="text"] { width: 100% } -textarea { width: 100% }; +tr.toplevel th { padding-right: 1em; } +tr.toplevel td, tr.toplevel th { padding-top: 1em; } +tr.lowlevel td, tr.lowlevel th { padding-top: 0em; } {% endblock %} + + + +{% macro draw_task(task) %} +{{task.title.now}} +{% endmacro %} + + + +{% macro task_with_deps(task, indent) %} +{% for i in range(indent) %}  {% if loop.last %}+{% endif %}{% endfor %} +{{ draw_task(task) }}
+{% for task in task.deps %} +{{ task_with_deps(task, indent+1) }} +{% endfor %} +{% endmacro %} + + + {% block content %} -

edit task

- + + + + + + + + + +{% if task.forks_id %} + + + + + +{% endif %} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +{{ macros.datalist_tasks(filtered_tasks) }} + +{% if task.deps %} + + + +{% endif %} +
add as todo to +
forks{{ task.forked_task.title.now|e }}
title + +
+history +
    +{% for k,v in task.title.history.items() | sort(attribute='0', reverse=True) %} +
  • {{ k }}: {{ v|e }} +{% endfor %} +
+
+
comment + +
default effort + +
+history +
    +{% for k,v in task.default_effort.history.items() | sort(attribute='0', reverse=True) %} +
  • {{ k }}: {{ v|e }} +{% endfor %} +
+
+
tags +add: {{ macros.tagselection(submit_name='tag', selected_tags=task.tags.now, all_tags=tags) }} +
+history +
    +{% for k,v in task.tags.history.items() | sort(attribute='0', reverse=True) %} +
  • {{ k }}: {{ v|e }} +{% endfor %} +
+
+
dependers +{% if task.dependers %} - - - +{% for depender in task.dependers %} + + + {% endfor %} -add:
-
history
    {% for k,v in task.tags_history.items() | sort(attribute='0', reverse=True) %}
  • {{ k }}: {{ v|e }}{% endfor %}
- - +
title
history
    {% for k,v in task.title_history.items() | sort(attribute='0', reverse=True) %}
  • {{ k }}: {{ v|e }}{% endfor %}
default weight
history
    {% for k,v in task.default_weight_history.items() | sort(attribute='0', reverse=True) %}
  • {{ k }}: {{ v|e }}{% endfor %}
tags
-{% for tag in db.t_tags | sort %} - {{ tag }}
+ +
+{{ draw_task(depender)}} +
links
+{% endif %} +add: +
children -{% for other_task_id, other_task in db.tasks.items() | sort(attribute='1.title') %} -{% if task.id_ != other_task_id and other_task.visible and other_task_id in task.links %} - {{ other_task.title|e }}
+{% if task.deps %} + +{% for dep in task.deps %} + + + + {% endfor %} -{% for other_task_id, other_task in db.tasks.items() | sort(attribute='1.title') %} -{% if task.id_ != other_task_id and other_task.visible and not other_task_id in task.links %} -{{ other_task.title|e }}
+
+ + +{% if dep.deps %} +
+ +{% endif %} +{{ draw_task(dep)}} +{% if dep.deps %} + +{% for s in dep.deps %} +{{ task_with_deps(s, 1) }} +{% endfor %} +
{% endif %} +
{% endif %} +add: +
as chain + +{% for dep in task.deps_chain %} + + + + {% endfor %} +
{{dep.deps_depth}}{{dep.title.now}}
- -
-
- -{% include 'tagfilters.html' %} + +
+ + +
-{% include 'watch_form.html' %} {% endblock %}