diff --git a/todo/static/todo/css/styles.css b/todo/static/todo/css/styles.css index 9412f0c..a20c4b8 100644 --- a/todo/static/todo/css/styles.css +++ b/todo/static/todo/css/styles.css @@ -24,12 +24,6 @@ a.showlink { text-decoration: underline; } -#tasktable a { - font-weight: bold; - font-family: "Arial"; - text-decoration: none; - color: #474747; -} label { display: block; @@ -50,20 +44,6 @@ input#id_priority { width: 30px; } -.todo-button { - border: 1px solid #9B9B9B; - background: #E0E0E0; - padding-bottom: 2px; - font-weight: bold; -} - -hr { - color: #E5E5E5; -} - -#slideToggle { - color: #4A8251; -} .todo-break { margin-top: 30px; @@ -74,25 +54,6 @@ table.nocolor, table.nocolor tr, table.nocolor td { background-color: transparent; } -table#tasktable td, table#tasktable th { - padding: 5px; - /* font-size:0.9em;*/ -} - -table#tasktable th { - text-align: left; - /* background-color: #9BCAE4; */ - background-color: #046380; - color: #fff; -} - -table#tasktable tr.row1 { - background-color: #AEF0BB; -} - -table#tasktable tr.row2 { - background-color: #B6F3D5; -} .minor { font-style: italic; diff --git a/todo/templates/todo/add_external_task.html b/todo/templates/todo/add_external_task.html index 9184dda..91ff2e9 100644 --- a/todo/templates/todo/add_external_task.html +++ b/todo/templates/todo/add_external_task.html @@ -5,79 +5,69 @@ {% block content %} -{% if messages %} - -{% endif %} +

{{ task }}

+ +
+ {% csrf_token %} + {% if task.note %} +
Note: {{ task.note|safe|urlize|linebreaks }}
+ {% endif %} -

{{ task }}

+
+

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.

- -{% csrf_token %} + {% if form.errors %} + + {% for error in form.errors %} + + {% endfor %} +
+ + {% endif %} -{% if task.note %} -
Note: {{ task.note|safe|urlize|linebreaks }}
-{% endif %} + + {{ form.management_form }} + {{ form.id }} -
-

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 %} - - {% for error in form.errors %} - - {% endfor %} -
- -{% endif %} + + -
Summary:{{ form.title }}
+ Include the workstation number in your summary, e.g.
+ "Radio Lab # 4: Purple smoke pouring out the back." +
- {{ form.management_form }} - {{ form.id }} + + - - + + - - + + + + + + +
Note:
Summary:{{ form.note }}
+ Please describe the problem.
{{ form.title }}
- Include the workstation number in your summary, e.g.
- "Radio Lab # 4: Purple smoke pouring out the back." -
Priority:{{ form.priority }}
+ Enter a number between 1 and 5,
+ where 5 is highest ("Computer is on fire = True"). +
+

+
- - Note: - - {{ form.note }}
- Please describe the problem. - - - - Priority: - - {{ form.priority }}
- Enter a number between 1 and 5,
- where 5 is highest ("Computer is on fire = True"). - - - - -

- - - -
+ {% endblock %} diff --git a/todo/templates/todo/add_list.html b/todo/templates/todo/add_list.html index ab423b5..60f5dd9 100644 --- a/todo/templates/todo/add_list.html +++ b/todo/templates/todo/add_list.html @@ -4,12 +4,12 @@ {% block content %} -

Add a list:

+

Add a list:

-
- {% csrf_token %} -{{ form }}
-

-
+
+ {% csrf_token %} + {{ form }}
+

+
{% endblock %} diff --git a/todo/templates/todo/del_list.html b/todo/templates/todo/del_list.html index 66bfd0a..bc288cd 100644 --- a/todo/templates/todo/del_list.html +++ b/todo/templates/todo/del_list.html @@ -5,53 +5,48 @@ {% block content %} -{# Only admins can delete lists. #} -{% ifequal can_del 1 %} + {# Only admins can delete lists. #} + {% ifequal can_del 1 %} - {% if list_killed %} + {% if list_killed %} -

{{ list.name }} is gone.

+

{{ list.name }} is gone.

+ + Return to lists + + {% else %} + +

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

+ +

Category tally:

+ + + +

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

+ +
+ {% csrf_token %} + + +

+
+ + + Return to list: {{ list.name }} + + {% endif %} - Return to lists {% else %} -

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

- -

Category tally:

- - - -

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

- -
- {% csrf_token %} - - -

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

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

- -{% endifequal %} - - - - +

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

+ {% endifequal %} {% endblock %} \ No newline at end of file diff --git a/todo/templates/todo/search_results.html b/todo/templates/todo/search_results.html index 048ba5b..fe7d336 100644 --- a/todo/templates/todo/search_results.html +++ b/todo/templates/todo/search_results.html @@ -12,10 +12,6 @@ {% block content %} - {% if message %} -

{{ message }}

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

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

diff --git a/todo/templates/todo/view_list.html b/todo/templates/todo/view_list.html index 2409a35..ec96fd1 100644 --- a/todo/templates/todo/view_list.html +++ b/todo/templates/todo/view_list.html @@ -5,61 +5,52 @@ {% block content %} - + {% ifequal 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 %} + + {% ifequal auth_ok 1 %} -

Tasks filed under "{{ list.name }}"

-

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

- {% endifequal %} - {% endifequal %} - - - {% if messages %} - - {% endif %} - - - {% ifequal auth_ok 1 %} -
- {% csrf_token %} + + {% csrf_token %} {# Only show task adder if viewing a proper list #} {% ifnotequal list_slug "mine" %} diff --git a/todo/templates/todo/view_task.html b/todo/templates/todo/view_task.html index cd93137..c11dc08 100644 --- a/todo/templates/todo/view_task.html +++ b/todo/templates/todo/view_task.html @@ -5,115 +5,102 @@ {% block content %} - + -{% if messages %} - -{% endif %} + {% ifequal auth_ok 1 %} + +

{{ task }}

+ + + {% csrf_token %} +

→ Click to edit details ←

+ +

In list: {{ task.list }}
+ Assigned to: {{ task.assigned_to.first_name }} {{ task.assigned_to.last_name }}
+ Created by: {{ task.created_by.first_name }} {{ task.created_by.last_name }}
+ Due date: {{ task.due_date }}
+ Completed: {{ form.completed }}
+

-{% ifequal auth_ok 1 %} + {% if task.note %} +
Note: {{ task.note|safe|urlize|linebreaks }}
+ {% endif %} -

{{ task }}

+
+

Edit Task

- -{% csrf_token %} -

→ Click to edit details ←

+ + {{ form.management_form }} + {{ form.id }} + + + + -

In list: {{ task.list }}
-Assigned to: {{ task.assigned_to.first_name }} {{ task.assigned_to.last_name }}
-Created by: {{ task.created_by.first_name }} {{ task.created_by.last_name }}
-Due date: {{ task.due_date }}
-Completed: {{ form.completed }}
-

+ + + + + + + + + + + + + + + + + + + + + + + + + +
Title:{{ form.title }}
List:{{ form.list }}
Due:{{ form.due_date }}
Assigned to:{{ form.assigned_to }}
Note:{{ form.note }}
Priority:{{ form.priority }}
+

+
-{% if task.note %} -
Note: {{ task.note|safe|urlize|linebreaks }}
-{% endif %} - -
-

Edit Task

- - - {{ form.management_form }} - {{ form.id }} - - - - - - - - - +
- - - - +

Add comment

+ +

+ +

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 }} + {% empty %} +

No Comments

+ {% endfor %} +
- - - - - - - - - - -
Title:{{ form.title }}
List:{{ form.list }}
Due:{{ form.due_date }}
Assigned to:{{ form.assigned_to }}
Note:{{ form.note }}
Priority:{{ form.priority }}
-

-
- - -
- - -

Add comment

- - -

- - - -

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 }} -{% empty %} -

No Comments

-{% endfor %} -
- -{% endifequal %} + {% endifequal %} {% endblock %}