+
File Trouble Ticket
+
Trouble with a computer or other technical system at the J-School?
+ Use this form to report the difficulty - we'll get right back to you.
-
-
File Trouble Ticket
-
Trouble with a computer or other technical system at the J-School?
- Use this form to report the difficulty - we'll get right back to you.
+ {% if form.errors %}
- {% if form.errors %}
+ {% for error in form.errors %}
+
+ - The {{ error|escape }} field is required.
+
+ {% endfor %}
+
- {% for error in form.errors %}
-
- - The {{ error|escape }} field is required.
-
- {% endfor %}
-
+ {% endif %}
- {% endif %}
+
+
+
-
-
{% endblock %}
diff --git a/todo/templates/todo/add_list.html b/todo/templates/todo/add_list.html
index 60f5dd9..6fcb22a 100644
--- a/todo/templates/todo/add_list.html
+++ b/todo/templates/todo/add_list.html
@@ -1,4 +1,5 @@
{% extends "todo/base.html" %}
+
{% block page_heading %}{% endblock %}
{% block title %}Add Todo List{% endblock %}
diff --git a/todo/templates/todo/base.html b/todo/templates/todo/base.html
index 1103171..3e128f6 100644
--- a/todo/templates/todo/base.html
+++ b/todo/templates/todo/base.html
@@ -4,15 +4,12 @@
{% block extrahead %}
-
-
{% endblock extrahead %}
diff --git a/todo/templates/todo/del_list.html b/todo/templates/todo/del_list.html
index 525de34..78c429c 100644
--- a/todo/templates/todo/del_list.html
+++ b/todo/templates/todo/del_list.html
@@ -1,51 +1,32 @@
-{% extends "base.html" %}
+{% extends "todo/base.html" %}
{% block title %}{{ list_title }} to-do items{% endblock %}
{% block content %}
- {# Only admins can delete lists. #}
- {% ifequal can_del 1 %}
+ {% if user.is_staff %}
+
Delete entire list: {{ list.name }} ?
+
Category tally:
- {% if list_killed %}
+
+ - Incomplete: {{ item_count_undone }}
+ - Complete: {{ item_count_done }}
+ - Total: {{ item_count_total }}
+
-
{{ list.name }} is gone.
+
... all of which will be irretrievably blown away. Are you sure you want to do that?
-
Return to lists
-
- {% else %}
-
-
Delete entire list: {{ list.name }} ?
-
-
Category tally:
-
-
- - Incomplete: {{ item_count_undone }}
- - Complete: {{ item_count_done }}
- - Total: {{ item_count_total }}
-
-
-
... all of which will be irretrievably blown away. Are you sure you want to do that?
-
-
-
-
-
Return to list: {{ list.name }}
-
- {% endif %}
+
+
Return to list: {{ list.name }}
{% else %}
-
Sorry, you don't have permission to delete lists. Please contact your group administrator.
+ {% endif %}
- {% endifequal %}
-
-
-{% endblock %}
\ No newline at end of file
+{% endblock %}
diff --git a/todo/templates/todo/search_results.html b/todo/templates/todo/search_results.html
index d7b94d5..23543db 100644
--- a/todo/templates/todo/search_results.html
+++ b/todo/templates/todo/search_results.html
@@ -3,32 +3,25 @@
{% block title %}Search results{% endblock %}
{% block body_id %}post_search{% endblock %}
-
{% block content_title %}
-
Search
+
Search
{% endblock %}
-
{% block content %}
-
- {% if found_items %}
-
{{found_items.count}} search results for term: "{{ query_string }}"
-
-
- {% for f in found_items %}
-
{{ f.title }}
-
-
- On list: {{ f.list.name }}
- Assigned to: {{ f.assigned_to }} (created by: {{ f.created_by }})
- Complete: {{ f.completed|yesno:"Yes,No" }}
-
-
-
- {% endfor %}
-
- {% else %}
-
No results to show, sorry.
-
- {% endif %}
-{% endblock %}
\ No newline at end of file
+ {% if found_items %}
+
{{found_items.count}} search results for term: "{{ query_string }}"
+
+ {% for f in found_items %}
+
{{ f.title }}
+
+ On list: {{ f.list.name }}
+ Assigned to: {{ f.assigned_to }} (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/view_list.html b/todo/templates/todo/view_list.html
index 42bb24a..f0a2d28 100644
--- a/todo/templates/todo/view_list.html
+++ b/todo/templates/todo/view_list.html
@@ -3,181 +3,169 @@
{% block title %}Todo List: {{ list.name }}{% endblock %}
{% block content %}
-
-
- {% ifequal list_slug "mine" %}
+ {% if list_slug == "mine" %}
Tasks assigned to {{ request.user }}
- {% else %}
- {% ifequal auth_ok 1 %}
-
Tasks filed under "{{ list.name }}"
-
This list belongs to group {{ list.group }}
- {% endifequal %}
- {% endifequal %}
+ {% elif auth_ok %}
+
Tasks filed under "{{ list.name }}"
+
This list belongs to group {{ list.group }}
+ {% endif %}
-
- {% ifequal auth_ok 1 %}
+ {% if auth_ok %}
-
View incomplete tasks
- {% endifequal %}
-
- {% ifequal can_del 1 %}
- {% ifnotequal list_slug "mine" %}
-
Delete this list
- {% endifnotequal %}
- {% endifequal %}
-
- {% endifequal %}
-{% endblock %}
\ No newline at end of file
+ {% endif %}
+{% endblock %}
diff --git a/todo/templates/todo/view_task.html b/todo/templates/todo/view_task.html
index 37ba72c..67a5ab2 100644
--- a/todo/templates/todo/view_task.html
+++ b/todo/templates/todo/view_task.html
@@ -17,73 +17,70 @@
});
-
{% ifequal auth_ok 1 %}
{{ task }}