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.html39
1 files changed, 21 insertions, 18 deletions
diff --git a/templates/news/add.html b/templates/news/add.html
index ef3f211c..38b5b21d 100644
--- a/templates/news/add.html
+++ b/templates/news/add.html
@@ -1,22 +1,25 @@
{% extends "base.html" %}
-{% block title %}Arch Linux - {% if form.instance.id %}Edit{% else %}Add{% endif %} News{% endblock %}
+{% block title %}Arch Linux - News: {% if form.instance.id %}Edit{% else %}Add{% endif %} Article{% endblock %}
{% block content %}
- <div class="greybox">
- {% if form.instance.id %}
- <h2 class="title">Edit News</h2>
- {% else %}
- <h2 class="title">Add News</h2>
- {% endif %}
- <form method="post" id="newsform" action=".">
- <table>
- {{form}}
- <tr>
- <td colspan="2" align="right">
- <input type="submit" value=" Save " />
- </td>
- </tr>
- </table>
- </form>
- </div>
+<div id="news-add-article" class="box">
+
+ {% if form.instance.id %}
+ <h2>News: Edit Article</h2>
+ {% else %}
+ <h2>News: Add Article</h2>
+ {% endif %}
+
+ <form id="newsform" method="post" action=".">
+ <fieldset>
+ {{ form.as_p }}
+ </fieldset>
+ {% if form.instance.id %}
+ <p><label></label> <input title="Save changes" type="submit" value="Save" /></p>
+ {% else %}
+ <p><label></label> <input title="Publish this article" type="submit" value="Publish" /></p>
+ {% endif %}
+ </form>
+
+</div>
{% endblock %}