summaryrefslogtreecommitdiff
path: root/templates/news/add.html
blob: 9b2ebae43e3fbe93706729ebb171253c924af70c (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">{% 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 %}