summaryrefslogtreecommitdiff
path: root/templates/todolists/list.html
blob: 51ba2bf8ed2e71c0f833e6f23c60ce806e3395fc (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
34
{% 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 %}