summaryrefslogtreecommitdiff
path: root/templates/news/add.html
diff options
context:
space:
mode:
authorDusty Phillips <buchuki@gmail.com>2008-10-05 21:06:00 -0400
committerDusty Phillips <buchuki@gmail.com>2008-10-05 21:06:00 -0400
commita00f85e1332ca973cec807693e383accd9cdc864 (patch)
tree6c99f0ccf8177a0c88f67c5689d837d85aeb633c /templates/news/add.html
parent06963130c85f8632b898a2d98e7931951c7735a4 (diff)
port news to django 1.0 using generic views
Diffstat (limited to 'templates/news/add.html')
-rw-r--r--templates/news/add.html9
1 files changed, 2 insertions, 7 deletions
diff --git a/templates/news/add.html b/templates/news/add.html
index 702d7ab7..80fccc3d 100644
--- a/templates/news/add.html
+++ b/templates/news/add.html
@@ -2,20 +2,15 @@
{% block content %}
<div class="greybox">
- {% if news %}
+ {% if form.instance.id %}
<h2 class="title">Edit News</h2>
{% else %}
<h2 class="title">Add News</h2>
{% endif %}
<form method="post" action=".">
<table>
+ {{form}}
<tr>
- <td>Title:</td>
- <td>{{ form.title }}</td>
- </tr><tr>
- <td style="vertical-align:top">Content:</td>
- <td>{{ form.content }}</td>
- </tr><tr>
<td colspan="2" align="right">
<input type="submit" value=" Save " />
</td>