Dynastie/templates/edit_category.html

14 lines
328 B
HTML
Raw Normal View History

2012-07-08 16:23:39 +02:00
{% extends "templates/base.html" %}
{% block content %}
<form action="/category/edit/{{ category.id }}" method="post">
{% csrf_token %}
{{ form.as_p }}
{% if user.is_superuser %}
<input type="submit" name="edit" value="Edit" />
{% else %}
<input type="submit" name="cancel" value="Cancel" />
{% endif %}
</form>
{% endblock %}