summaryrefslogtreecommitdiffstats
path: root/templates/news/add.html
blob: 04a55689ddf03f42c4f2d84413f0e119df8264a3 (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=".">{% csrf_token %}
        <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 %}