Better template filenames
- Also removes some extraneous CSS classes
This commit is contained in:
parent
03c125ca50
commit
8cba92b571
5 changed files with 19 additions and 17 deletions
|
@ -15,15 +15,6 @@ ul.messages li {
|
||||||
color: gray;
|
color: gray;
|
||||||
}
|
}
|
||||||
|
|
||||||
a.todo {
|
|
||||||
text-decoration: none;
|
|
||||||
color: #474747;
|
|
||||||
}
|
|
||||||
|
|
||||||
a.showlink {
|
|
||||||
text-decoration: underline;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
label {
|
label {
|
||||||
display: block;
|
display: block;
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
<ul>
|
<ul>
|
||||||
{% for item in group.list %}
|
{% for item in group.list %}
|
||||||
<li>
|
<li>
|
||||||
<a class="todo" href="{% url 'todo:list_detail' item.id item.slug %}">{{ item.name }}</a>
|
<a href="{% url 'todo:list_detail' item.id item.slug %}">{{ item.name }}</a>
|
||||||
({{ item.list_detail.count }}/{{ item.item_set.count }})
|
({{ item.list_detail.count }}/{{ item.item_set.count }})
|
||||||
</li>
|
</li>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
|
@ -26,11 +26,22 @@
|
||||||
<p id="slideToggle" ><strong>→ Click to edit details ←</strong></p>
|
<p id="slideToggle" ><strong>→ Click to edit details ←</strong></p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
<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>In list:</strong>
|
||||||
<strong>Assigned to:</strong> {% if task.assigned_to %}{{ task.assigned_to.get_full_name }}{% else %}Anyone{% endif %}<br />
|
<a href="{% url 'todo:list_detail' task.task_list.id task.task_list.slug %}">
|
||||||
<strong>Created by:</strong> {{ task.created_by.first_name }} {{ task.created_by.last_name }}<br />
|
{{ task.task_list }}
|
||||||
<strong>Due date:</strong> {{ task.due_date }}<br />
|
</a><br />
|
||||||
<strong>Completed:</strong> {{ form.completed }}<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 />
|
||||||
|
|
||||||
|
<strong>Completed:</strong>
|
||||||
|
{{ form.completed }}<br />
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
{% if task.note %}
|
{% if task.note %}
|
|
@ -190,7 +190,7 @@ def task_detail(request, task_id):
|
||||||
else:
|
else:
|
||||||
messages.info(request, "You do not have permission to view/edit this task.")
|
messages.info(request, "You do not have permission to view/edit this task.")
|
||||||
|
|
||||||
return render(request, 'todo/view_task.html', locals())
|
return render(request, 'todo/task_detail.html', locals())
|
||||||
|
|
||||||
|
|
||||||
@csrf_exempt
|
@csrf_exempt
|
||||||
|
@ -247,7 +247,7 @@ def external_add(request):
|
||||||
else:
|
else:
|
||||||
form = AddExternalItemForm()
|
form = AddExternalItemForm()
|
||||||
|
|
||||||
return render(request, 'todo/add_external_task.html', locals())
|
return render(request, 'todo/add_task_external.html', locals())
|
||||||
|
|
||||||
|
|
||||||
@user_passes_test(check_user_allowed)
|
@user_passes_test(check_user_allowed)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue