From a00f85e1332ca973cec807693e383accd9cdc864 Mon Sep 17 00:00:00 2001 From: Dusty Phillips Date: Sun, 5 Oct 2008 21:06:00 -0400 Subject: port news to django 1.0 using generic views --- templates/news/add.html | 9 ++------- templates/news/delete.html | 11 +++++------ templates/news/list.html | 2 +- 3 files changed, 8 insertions(+), 14 deletions(-) (limited to 'templates') diff --git a/templates/news/add.html b/templates/news/add.html index 702d7ab..80fccc3 100644 --- a/templates/news/add.html +++ b/templates/news/add.html @@ -2,20 +2,15 @@ {% block content %}
- {% if news %} + {% if form.instance.id %}

Edit News

{% else %}

Add News

{% endif %}
+ {{form}} - - - - - - diff --git a/templates/news/delete.html b/templates/news/delete.html index 7ac5e25..0f48f8b 100644 --- a/templates/news/delete.html +++ b/templates/news/delete.html @@ -4,13 +4,12 @@

Confirm Delete


+ You are about to delete the news item '{{news}}'. +

+ Are you sure? +

-
Title:{{ form.title }}
Content:{{ form.content }}
- - - - -
Are You Sure?   
+    
{% endblock %} diff --git a/templates/news/list.html b/templates/news/list.html index 8627766..0edaae1 100644 --- a/templates/news/list.html +++ b/templates/news/list.html @@ -9,7 +9,7 @@ {% endif %}

News Updates

- {% for item in news %} + {% for item in news_list %} -- cgit v1.2.3-24-g4f1b
{{ item.postdate }} {{ item.title }}