Rename List model to TaskList
This commit is contained in:
parent
774cd3d057
commit
efc2dbe11a
10 changed files with 130 additions and 90 deletions
|
@ -1,11 +1,11 @@
|
|||
{% extends "todo/base.html" %}
|
||||
|
||||
{% block title %}{{ list_title }} to-do items{% endblock %}
|
||||
{% block title %}Delete list{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
{% if user.is_staff %}
|
||||
<h1>Delete entire list: {{ list.name }} ?</h1>
|
||||
<h1>Delete entire list: {{ task_list.name }} ?</h1>
|
||||
|
||||
<p>Category tally:</p>
|
||||
|
||||
|
@ -19,11 +19,11 @@
|
|||
|
||||
<form action="" method="post" accept-charset="utf-8">
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="list" value="{{ list.id }}" id="some_name">
|
||||
<input type="hidden" name="task_list" value="{{ task_list.id }}">
|
||||
<p><input type="submit" name="delete-confirm" value="Do it! →" class="todo-button"> </p>
|
||||
</form>
|
||||
|
||||
<a href="{% url 'todo:list_detail' list.id list_slug %}">Return to list: {{ list.name }}</a>
|
||||
<a href="{% url 'todo:list_detail' task_list.id task_list.slug %}">Return to list: {{ task_list.name }}</a>
|
||||
|
||||
{% else %}
|
||||
<p>Sorry, you don't have permission to delete lists. Please contact your group administrator.</p>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
Dear {{ task.assigned_to.first_name }} -
|
||||
|
||||
A new task on the list {{ task.list.name }} has been assigned to you by {{ task.created_by.first_name }} {{ task.created_by.last_name }}:
|
||||
A new task on the list {{ task.task_list.name }} has been assigned to you by {{ task.created_by.first_name }} {{ task.created_by.last_name }}:
|
||||
|
||||
{{ task.title }}
|
||||
|
||||
|
@ -16,5 +16,5 @@ Note: {{ task.note }}
|
|||
Task details/comments:
|
||||
http://{{ site }}{% url 'todo:task_detail' task.id %}
|
||||
|
||||
List {{ task.list.name }}:
|
||||
http://{{ site }}{% url 'todo:list_detail' task.list.id task.list.slug %}
|
||||
List {{ task.task_list.name }}:
|
||||
http://{{ site }}{% url 'todo:list_detail' task.task_list.id task.task_list.slug %}
|
||||
|
|
|
@ -11,6 +11,6 @@ Comment:
|
|||
Task details/comments:
|
||||
https://{{ site }}{% url 'todo:task_detail' task.id %}
|
||||
|
||||
List {{ task.list.name }}:
|
||||
https://{{ site }}{% url 'todo:list_detail' task.list.id task.list.slug %}
|
||||
List {{ task.task_list.name }}:
|
||||
https://{{ site }}{% url 'todo:list_detail' task.task_list.id task.task_list.slug %}
|
||||
|
||||
|
|
|
@ -13,8 +13,15 @@
|
|||
{% for f in found_items %}
|
||||
<p><strong><a href="{% url 'todo:task_detail' f.id %}">{{ f.title }}</a></strong><br />
|
||||
<span class="minor">
|
||||
On list: <a href="{% url 'todo:list_detail' f.list.id f.list.slug %}">{{ f.list.name }}</a><br />
|
||||
Assigned to: {% if f.assigned_to %}{{ f.assigned_to }}{% else %}Anyone{% endif %} (created by: {{ f.created_by }})<br />
|
||||
In list:
|
||||
<a href="{% url 'todo:list_detail' f.task_list.id f.task_list.slug %}">
|
||||
{{ f.task_list.name }}
|
||||
</a>
|
||||
<br />
|
||||
Assigned to:
|
||||
{% if f.assigned_to %}{{ f.assigned_to }}{% else %}Anyone{% endif %}
|
||||
(created by: {{ f.created_by }})
|
||||
<br />
|
||||
Complete: {{ f.completed|yesno:"Yes,No" }}
|
||||
</span>
|
||||
</p>
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
<p id="slideToggle" ><strong>→ Click to edit details ←</strong></p>
|
||||
|
||||
<p>
|
||||
<strong>In list:</strong> <a href="{% url 'todo:list_detail' task.list.id task.list.slug %}" class="showlink">{{ task.list }}</a><br />
|
||||
<strong>In list:</strong> <a href="{% url 'todo:list_detail' task.task_list.id task.task_list.slug %}" class="showlink">{{ task.list }}</a><br />
|
||||
<strong>Assigned to:</strong> {% if task.assigned_to %}{{ task.assigned_to.get_full_name }}{% else %}Anyone{% endif %}<br />
|
||||
<strong>Created by:</strong> {{ task.created_by.first_name }} {{ task.created_by.last_name }}<br />
|
||||
<strong>Due date:</strong> {{ task.due_date }}<br />
|
||||
|
@ -48,7 +48,7 @@
|
|||
|
||||
<tr>
|
||||
<td>List:</td>
|
||||
<td>{{ form.list }} </td>
|
||||
<td>{{ form.task_list }} </td>
|
||||
</tr>
|
||||
|
||||
<tr>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue