diff --git a/todo/templates/todo/add_task_external.html b/todo/templates/todo/add_task_external.html index bf0a0a7..b0f6d0d 100644 --- a/todo/templates/todo/add_task_external.html +++ b/todo/templates/todo/add_task_external.html @@ -54,11 +54,11 @@ -

+

{% endcomment %} {{ form.as_p }} -

+

{% endblock %} \ No newline at end of file diff --git a/todo/templates/todo/base.html b/todo/templates/todo/base.html index 099ab64..cfe6514 100644 --- a/todo/templates/todo/base.html +++ b/todo/templates/todo/base.html @@ -2,6 +2,7 @@ {% load staticfiles %} {% block extrahead %} - + {% endblock extrahead %} + diff --git a/todo/templates/todo/del_list.html b/todo/templates/todo/del_list.html index 29f2f4b..9429d1e 100644 --- a/todo/templates/todo/del_list.html +++ b/todo/templates/todo/del_list.html @@ -1,32 +1,33 @@ {% extends "todo/base.html" %} - {% block title %}Delete list{% endblock %} {% block content %} + {% if user.is_staff %} +

Delete entire list: {{ task_list.name }} ?

- {% if user.is_staff %} -

Delete entire list: {{ task_list.name }} ?

+

Category tally:

-

Category tally:

+ - +

... all of which will be irretrievably + blown away. Are you sure you want to do that?

-

... all of which will be irretrievably blown away. Are you sure you want to do that?

+
+ {% csrf_token %} + +

+ Return to list: {{ task_list.name }} + +

+
-
- {% csrf_token %} - -

-
- Return to list: {{ task_list.name }} - - {% else %} -

Sorry, you don't have permission to delete lists. Please contact your group administrator.

- {% endif %} - -{% endblock %} +{% 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/include/toggle_delete.html b/todo/templates/todo/include/toggle_delete.html new file mode 100644 index 0000000..50d6334 --- /dev/null +++ b/todo/templates/todo/include/toggle_delete.html @@ -0,0 +1,8 @@ +{% if list_slug != "mine" %} {% if view_completed %} + View incomplete tasks +{% else %} + View completed tasks +{% endif %} + +Delete this list +{% endif %} \ No newline at end of file diff --git a/todo/templates/todo/list_detail.html b/todo/templates/todo/list_detail.html index 1016fc4..9b4e499 100644 --- a/todo/templates/todo/list_detail.html +++ b/todo/templates/todo/list_detail.html @@ -57,7 +57,7 @@

Tasks assigned to me (in all groups)

{% else %}

{{ view_completed|yesno:"Completed tasks, Tasks" }} in "{{ task_list.name }}"

-

This list belongs to group {{ task_list.group }}

+

In workgroup "{{ task_list.group }}" - drag rows to set priorities.

{% endif %}
@@ -77,10 +77,12 @@ {% for task in items %} - + - {{ task.title|truncatewords:20 }} + {{ task.title|truncatewords:10 }} {{ task.created_date|date:"m/d/Y" }} @@ -108,24 +110,14 @@ {% endfor %} -

- Drag rows to set priorities -

-

+ + + {% include 'todo/include/toggle_delete.html' %} +
{% else %}

No items on this list yet (add one!)

- {% endif %} - - {% if list_slug != "mine" %} - - {% if view_completed %} -

View incomplete tasks

- {% else %} -

View completed tasks

- {% endif %} - -

Delete this list

+ {% include 'todo/include/toggle_delete.html' %} {% endif %} diff --git a/todo/templates/todo/list_lists.html b/todo/templates/todo/list_lists.html index 47d710d..92bcac3 100644 --- a/todo/templates/todo/list_lists.html +++ b/todo/templates/todo/list_lists.html @@ -1,28 +1,26 @@ {% extends "todo/base.html" %} {% block title %}{{ list_title }} Todo Lists{% endblock %} - {% block content %} +

Todo Lists

-

Todo Lists

+

{{ item_count }} items in {{ list_count }} list{{ list_count|pluralize }}

-

{{ item_count }} items in {{ list_count }} list{{ list_count|pluralize }}

+ {% regroup lists by group as section_list %} + {% for group in section_list %} +

Group: {{ group.grouper }}

+ + {% endfor %} - {% regroup lists by group as section_list %} +
+ Create new todo list +
- {% for group in section_list %} -

Group: {{ group.grouper }}

- - {% endfor %} - -
Create new todo list
- -{% endblock %} +{% endblock %} \ No newline at end of file diff --git a/todo/templates/todo/search_results.html b/todo/templates/todo/search_results.html index d50759a..a90550a 100644 --- a/todo/templates/todo/search_results.html +++ b/todo/templates/todo/search_results.html @@ -1,33 +1,30 @@ {% extends "todo/base.html" %} {% block title %}Search results{% endblock %} - -{% block content_title %} -

Search

-{% endblock %} +{% block content_title %}

Search

{% endblock %} {% block content %} - {% if found_items %} -

{{found_items.count}} search results for term: "{{ query_string }}"

-
- {% for f in found_items %} -

{{ f.title }}
- - In list: - - {{ f.task_list.name }} - -
- Assigned to: - {% if f.assigned_to %}{{ f.assigned_to }}{% else %}Anyone{% endif %} - (created by: {{ f.created_by }}) -
- Complete: {{ f.completed|yesno:"Yes,No" }} -
-

- {% endfor %} -
- {% else %} -

No results to show, sorry.

- {% endif %} + {% if found_items %} +

{{found_items.count}} search results for term: "{{ query_string }}"

+
+ {% for f in found_items %} +

+ + {{ f.title }} + +
+ + In list: + + {{ f.task_list.name }} + +
Assigned to: {% if f.assigned_to %}{{ f.assigned_to }}{% else %}Anyone{% endif %} (created by: {{ f.created_by }}) +
Complete: {{ f.completed|yesno:"Yes,No" }} +
+

+ {% endfor %} +
+ {% else %} +

No results to show, sorry.

+ {% endif %} {% endblock %} diff --git a/todo/templates/todo/task_detail.html b/todo/templates/todo/task_detail.html index 5037849..97fbed6 100644 --- a/todo/templates/todo/task_detail.html +++ b/todo/templates/todo/task_detail.html @@ -87,14 +87,14 @@ -

+


Add comment

-

+