summaryrefslogtreecommitdiff
path: root/templates/todolists
diff options
context:
space:
mode:
Diffstat (limited to 'templates/todolists')
-rw-r--r--templates/todolists/add.html25
-rw-r--r--templates/todolists/list.html30
-rw-r--r--templates/todolists/view.html31
3 files changed, 86 insertions, 0 deletions
diff --git a/templates/todolists/add.html b/templates/todolists/add.html
new file mode 100644
index 00000000..a53637ce
--- /dev/null
+++ b/templates/todolists/add.html
@@ -0,0 +1,25 @@
+{% extends "base.html" %}
+
+{% block content %}
+ <div class="greybox">
+ <h2 class="title">Add ToDo List</h2>
+ <form method="post" action=".">
+ <table>
+ <tr>
+ <td>Name:</td>
+ <td><input type="text" name="name" size="30" value="" /></td>
+ </tr><tr>
+ <td style="vertical-align:top">Description:</td>
+ <td><textarea name="description" cols="60" rows="4"></textarea></td>
+ </tr><tr>
+ <td style="vertical-align:top">List of Package Names:<br /><span style="font-size:x-small">(one per line)</span></td>
+ <td><textarea name="packages" cols="60" rows="20"></textarea></td>
+ </tr><tr>
+ <td colspan="2" style="text-align:right">
+ <input type="submit" value=" Create List " />
+ </td>
+ </tr>
+ </table>
+ </form>
+ </div>
+{% endblock %}
diff --git a/templates/todolists/list.html b/templates/todolists/list.html
new file mode 100644
index 00000000..0e659f93
--- /dev/null
+++ b/templates/todolists/list.html
@@ -0,0 +1,30 @@
+{% 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%">
+ <tr>
+ <th>Name</th>
+ <th>Creation Date</th>
+ <th>Creator</th>
+ <th>Description</th>
+ <th>Status</th>
+ </tr>
+ {% for list in lists %}
+ <tr>
+ <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 %}
+ </table>
+ </div>
+{% endblock %}
diff --git a/templates/todolists/view.html b/templates/todolists/view.html
new file mode 100644
index 00000000..89a07a99
--- /dev/null
+++ b/templates/todolists/view.html
@@ -0,0 +1,31 @@
+{% extends "base.html" %}
+
+{% block content %}
+ <div class="greybox">
+ <h3 class="title">ToDo List: {{ list.name }}</h2>
+ <table class="results" width="100%">
+ <tr>
+ <th>ID</th>
+ <th>Repo</th>
+ <th>Name</th>
+ <th>Maintainer</th>
+ <th>Status</th>
+ </tr>
+ {% for pkg in pkgs %}
+ <tr>
+ <td><a href="/packages/{{ pkg.pkg.id }}/">{{ pkg.pkg.id }}</a></td>
+ <td>{{ pkg.pkg.repo.name }}</td>
+ <td>{{ pkg.pkg.pkgname }}</td>
+ <td>{{ pkg.pkg.maintainer.get_full_name }}</td>
+ <td>
+ {% if pkg.complete %}
+ <a href="/todo/flag/{{ list.id }}/{{ pkg.id }}/"><span style="color:blue">Complete</span></a>
+ {% else %}
+ <a href="/todo/flag/{{ list.id }}/{{ pkg.id }}/"><span style="color:red">Incomplete</span></a>
+ {% endif %}
+ </td>
+ </tr>
+ {% endfor %}
+ </table>
+ </div>
+{% endblock %}