Better template filenames

- Also removes some extraneous CSS classes
This commit is contained in:
Scot Hacker 2018-02-10 23:28:35 -08:00
parent 03c125ca50
commit 8cba92b571
5 changed files with 19 additions and 17 deletions

View file

@ -15,15 +15,6 @@ ul.messages li {
color: gray;
}
a.todo {
text-decoration: none;
color: #474747;
}
a.showlink {
text-decoration: underline;
}
label {
display: block;

View file

@ -15,7 +15,7 @@
<ul>
{% for item in group.list %}
<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 }})
</li>
{% endfor %}

View file

@ -26,11 +26,22 @@
<p id="slideToggle" ><strong>&rarr; Click to edit details &larr;</strong></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>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 />
<strong>In list:</strong>
<a href="{% url 'todo:list_detail' task.task_list.id task.task_list.slug %}">
{{ task.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 />
<strong>Completed:</strong>
{{ form.completed }}<br />
</p>
{% if task.note %}

View file

@ -190,7 +190,7 @@ def task_detail(request, task_id):
else:
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
@ -247,7 +247,7 @@ def external_add(request):
else:
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)