summaryrefslogtreecommitdiff
path: root/templates/news/add.html
diff options
context:
space:
mode:
authorThayer Williams <thayerw@gmail.com>2010-03-16 11:25:02 -0700
committerDan McGee <dan@archlinux.org>2010-05-17 14:49:44 -0500
commit3945c52682702a9b4b62a46e667f2c3307f06907 (patch)
tree5f7e1ebf52ff4c02ad0a178265b36e5599c6e27e /templates/news/add.html
parent06f52613522adebd9228221a4fa36ab5746f4fdd (diff)
Redesigned News Pages
Signed-off-by: Dan McGee <dan@archlinux.org>
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 %}