From 7df08f2ce3809977c98537db03745a8e423f5f07 Mon Sep 17 00:00:00 2001 From: Dusty Phillips Date: Fri, 27 Jun 2008 22:13:40 -0400 Subject: add delete functionality to todo lists --- templates/todolists/todolist_confirm_delete.html | 24 ++++++++++++++++++++++++ templates/todolists/view.html | 9 ++++++--- 2 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 templates/todolists/todolist_confirm_delete.html (limited to 'templates') 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 %} +
+

Confirm Delete

+

+ Are you sure you want to delete this todo list? +

+
+

{{object.name}}

+

+ {{object.description}} +

+
+
+
+ + +
+ + +
+{% 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 %}
- {% if perms.todolists.change_todolist %}
- Edit Todo List + {% if perms.todolist.delete_todolist %} + Delete Todo List | + {% endif %} + {% if perms.todolists.change_todolist %} + Edit Todo List + {% endif %}
- {% endif %}

ToDo List: {{ list.name }}

-- cgit v1.2.3-54-g00ecf