X-Git-Url: https://plomlompom.com/repos/berlin_corona.txt?a=blobdiff_plain;f=todo_templates%2Ftask.html;h=2666d0da260cb1ea2ba1109adb8403b559678fe5;hb=38b9ce0ba2b5af072554999bc5836ffe455f06db;hp=b0ed3e8b115f9f195ef1eb1fb5fff7e3e8c7f553;hpb=fde1097e391b9ec0c261f1e91bd203232b3fbcb3;p=misc diff --git a/todo_templates/task.html b/todo_templates/task.html index b0ed3e8..2666d0d 100644 --- a/todo_templates/task.html +++ b/todo_templates/task.html @@ -1,48 +1,127 @@ {% 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 %} + {% block content %} -

edit task

- - + + + - - - + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + +{% if task.parents %} + + + {% endif %} + + + + + +{% for subtask in filtered_tasks %} + +{% endfor %} + +
title
history
    {% for k,v in task.title_history.items() | sort(attribute='0', reverse=True) %}
  • {{ k }}: {{ v|e }}{% endfor %}
default effort
history
    {% for k,v in task.default_effort_history.items() | sort(attribute='0', reverse=True) %}
  • {{ k }}: {{ v|e }}{% endfor %}
tags
add as todo to {{ selected_date }}
title + +
+history +
    +{% for k,v in task.title.history.items() | sort(attribute='0', reverse=True) %} +
  • {{ k }}: {{ v|e }} +{% endfor %} +
+
+
comment + +
default effort +{% if task.subtasks %} +{{ task.default_effort.now }} +{% else %} + +
+history +
    +{% for k,v in task.default_effort.history.items() | sort(attribute='0', reverse=True) %} +
  • {{ k }}: {{ v|e }} +{% endfor %} +
+
+{% endif %} +
tags -{% for tag in db.t_tags | sort %} - {{ tag }}
+ +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 %} -add:
    -
    history
      {% for k,v in task.tags_history.items() | sort(attribute='0', reverse=True) %}
    • {{ k }}: {{ v|e }}{% endfor %}
    -
links
parents -{% 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 }}
-{% endif %} +
    +{% for parent in task.parents %} +
  • {{parent.title.now}} {% 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 }}
    +
+
children +{% if task.subtasks %} + +{% for subtask in task.subtasks %} + + + + {% endfor %} +
+ + +{{subtask.title.now}} +
+{% endif %} +
+add:
- -
-
- -{% include 'tagfilters.html' %} + +
+ +
-{% include 'watch_form.html' %} {% endblock %}