evorepo/templates/news/add.html
Dan McGee b3059dd3e8 Remove action when submitting to same URL
It looks like the `action="."` business was screwing up some browsers,
notably lynx and links. We don't need it as the default is to submit to the
same page anyway, so kill this gunk and see if it fixes a login CSRF issue.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-11 17:29:46 -05:00

26 lines
744 B
HTML

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