b3059dd3e8
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>
26 lines
744 B
HTML
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 %}
|