summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/todolists/todolist_confirm_delete.html24
-rw-r--r--templates/todolists/view.html9
2 files changed, 30 insertions, 3 deletions
diff --git a/templates/todolists/todolist_confirm_delete.html b/templates/todolists/todolist_confirm_delete.html
new file mode 100644
index 00000000..bfa3dbab
--- /dev/null
+++ b/templates/todolists/todolist_confirm_delete.html
@@ -0,0 +1,24 @@
+{% extends "base.html" %}
+
+{% block content %}
+ <div class="greybox">
+ <h2 class="title">Confirm Delete</h2>
+ <p>
+ Are you sure you want to delete this todo list?
+ </p>
+ <div class="box">
+ <h3>{{object.name}}</h3>
+ <p>
+ {{object.description}}
+ </p>
+ </div>
+ <br />
+ <form method="POST">
+ <input type="submit" value="Yes" />
+ <button type="reset" value="No"
+ onclick="document.location='/todos/{{object.id}}/';">No</button>
+ </form>
+
+
+ </div>
+{% endblock %}
diff --git a/templates/todolists/view.html b/templates/todolists/view.html
index f278fe4e..a1a82a41 100644
--- a/templates/todolists/view.html
+++ b/templates/todolists/view.html
@@ -32,11 +32,14 @@
{% endblock %}
{% block content %}
<div class="greybox">
- {% if perms.todolists.change_todolist %}
<div style="float:right">
- <a href="/todo/edit/{{list.id}}?">Edit Todo List</a>
+ {% if perms.todolist.delete_todolist %}
+ <a href="/todo/delete/{{list.id}}/">Delete Todo List</a> |
+ {% endif %}
+ {% if perms.todolists.change_todolist %}
+ <a href="/todo/edit/{{list.id}}/">Edit Todo List</a>
+ {% endif %}
</div>
- {% endif %}
<h2 class="title">ToDo List: {{ list.name }}</h2>
<table id="todotable" class="results" width="100%">
<thead>