Category tally:
+ +... all of which will be irretrievably + blown away. Are you sure you want to do that?
+ + + + +{% else %} +Sorry, you don't have permission to delete lists. Please contact your group administrator.
+{% endif %} {% endblock %} \ No newline at end of file diff --git a/todo/templates/todo/email/assigned_body.txt b/todo/templates/todo/email/assigned_body.txt new file mode 100644 index 0000000..4287b92 --- /dev/null +++ b/todo/templates/todo/email/assigned_body.txt @@ -0,0 +1,17 @@ +{{ task.assigned_to.first_name }} - + +A new task on the list {{ task.task_list.name }} has been assigned to you by {{ task.created_by.get_full_name }: + +{{ task.title }} + +{% if task.note %} +{% autoescape off %} +Note: {{ task.note }} +{% endautoescape %} +{% endif %} + +Task details/comments: +http://{{ site }}{% url 'todo:task_detail' task.id %} + +List {{ task.task_list.name }}: +http://{{ site }}{% url 'todo:list_detail' task.task_list.id task.task_list.slug %} diff --git a/todo/templates/todo/email/assigned_subject.txt b/todo/templates/todo/email/assigned_subject.txt new file mode 100644 index 0000000..b6cc9db --- /dev/null +++ b/todo/templates/todo/email/assigned_subject.txt @@ -0,0 +1 @@ +GTD: New task - {% autoescape off %}Note: {{ task.title }}{% endautoescape %} \ No newline at end of file diff --git a/todo/templates/todo/email/newcomment_body.txt b/todo/templates/todo/email/newcomment_body.txt new file mode 100644 index 0000000..81947ff --- /dev/null +++ b/todo/templates/todo/email/newcomment_body.txt @@ -0,0 +1,16 @@ +A new task comment has been added. + +Task: {{ task.title }} +Commenter: {{ user.first_name }} {{ user.last_name }} + +Comment: +{% autoescape off %} +{{ body }} +{% endautoescape %} + +Task details/comments: +https://{{ site }}{% url 'todo:task_detail' task.id %} + +List {{ task.task_list.name }}: +https://{{ site }}{% url 'todo:list_detail' task.task_list.id task.task_list.slug %} + diff --git a/todo/templates/todo/include/task_edit.html b/todo/templates/todo/include/task_edit.html new file mode 100644 index 0000000..cabee0c --- /dev/null +++ b/todo/templates/todo/include/task_edit.html @@ -0,0 +1,54 @@ +{# Form used by both Add Task and Edit Task views #} + + diff --git a/todo/templates/todo/include/toggle_delete.html b/todo/templates/todo/include/toggle_delete.html new file mode 100644 index 0000000..f28def2 --- /dev/null +++ b/todo/templates/todo/include/toggle_delete.html @@ -0,0 +1,12 @@ + + {% if list_slug != "mine" %} + {% if view_completed %} + View incomplete tasks + + {% else %} + View completed tasks + + {% endif %} + + Delete this list + {% endif %} diff --git a/todo/templates/todo/list_detail.html b/todo/templates/todo/list_detail.html new file mode 100644 index 0000000..68048ce --- /dev/null +++ b/todo/templates/todo/list_detail.html @@ -0,0 +1,122 @@ +{% extends "todo/base.html" %} +{% load staticfiles %} + +{% block title %}Todo List: {{ task_list.name }}{% endblock %} + +{% block content %} + + {% if list_slug != "mine" %} + + + {# Task edit / new task form #} + {% include 'todo/include/task_edit.html' %} +In workgroup "{{ task_list.group }}" - drag rows to set priorities.
+ {% endif %} + + + {% else %} +{{ task_count }} tasks in {{ list_count }} list{{ list_count|pluralize }}
+ + {% regroup lists by group as section_list %} + {% for group in section_list %} +
+
+ {{ f.title }}
+
+
+
+ In list:
+
+ {{ f.task_list.name }}
+
+
Assigned to: {% if f.assigned_to %}{{ f.assigned_to }}{% else %}Anyone{% endif %}
+
Complete: {{ f.completed|yesno:"Yes,No" }}
+
+
{{ task.note|safe|urlize|linebreaks }}
+ {% endif %} +
Comments on this task
+ {% for comment in comment_list %} ++ {{ comment.author.first_name }} + {{ comment.author.last_name }}, + {{ comment.date|date:"F d Y P" }} + +
+ {{ comment.body|safe|urlize|linebreaks }} + {% endfor %} + {% else %} +No comments (yet).
+ {% endif %} +