summaryrefslogtreecommitdiff
path: root/templates/news/add.html
blob: 38b5b21dd5c6ec48ed03f8d8317803d442370bb5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{% extends "base.html" %}
{% block title %}Arch Linux - News: {% if form.instance.id %}Edit{% else %}Add{% endif %} Article{% endblock %}

{% block content %}
<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 %}