summaryrefslogtreecommitdiff
path: root/templates/news/add.html
diff options
context:
space:
mode:
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>