summaryrefslogtreecommitdiff
path: root/templates/todolists/list.html
blob: 714e1139c20699f0ddd9596ccedc71b926c0d672 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{% extends "base.html" %}
{% block content %}
	<div class="greybox">
	{% if perms.todolists.add_todolist %}
		<div style="float:right">
			<a href="/todo/add/">Add Todo List</a>
		</div>
	{% endif %}
		<h2 class="title">Package ToDo lists</h2>
		<table class="results" width="100%">
        <thead>
			<tr>
				<th>Name</th>
				<th>Creation Date</th>
				<th>Creator</th>
				<th>Description</th>
				<th>Status</th>
			</tr>
        </thead>
        <tbody>
		{% for list in lists %}
            <tr class="{% cycle pkgr2,pkgr1 %}">
				<td style="white-space:nowrap"><a href="/todo/{{ list.id }}/">{{ list.name }}</a></td>
				<td>{{ list.date_added }}</td>
				<td>{{ list.creator.get_full_name }}</td>
				<td>{{ list.description }}</td>
				<td>{% if list.complete %}<span style="color:blue">Complete</span>{% else %}<span style="color:red">Incomplete</span>{% endif %}</td>
			</tr>
		{% endfor %}
        </tbody>
		</table>
	</div>
{% endblock %}