Dynastie/templates/category.html

17 lines
554 B
HTML
Raw Normal View History

2012-07-08 16:23:39 +02:00
{% extends "templates/base.html" %}
{% block content %}
<table>
{% if categories|length == 0 %}
<b>Any category available</b><br/><br/>
{% else %}
{% for category in categories %}
<hr><hl>{{ category.id }}</hl><hl>{{ category.name }}</hl><hl><a href="/category/edit/{{ category.id }}">Edit</a></hl>{% if user.is_superuser %}<hl><a href="/category/delete/{{ category.id }}">Delete</a></hl>{% endif %}</hr>
{% endfor %}
{% endif %}
{% if user.is_superuser %}
<li><a href="/category/add">Add a category</a></li>
{% endif %}
</table>
{% endblock %}