Dynastie/templates/category.html

19 lines
571 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 %}
2012-10-04 21:49:33 +02:00
<table>
2012-07-08 16:23:39 +02:00
{% for category in categories %}
2012-10-04 21:49:33 +02:00
<tr><td>{{ category.id }}</td><td>{{ category.name }}</td><td><a href="/category/edit/{{ category.id }}">Edit</a></td>{% if user.is_superuser %}<td><a href="/category/delete/{{ category.id }}">Delete</a></td>{% endif %}</tr>
2012-07-08 16:23:39 +02:00
{% endfor %}
2012-10-04 21:49:33 +02:00
</table>
2012-07-08 16:23:39 +02:00
{% endif %}
{% if user.is_superuser %}
<li><a href="/category/add">Add a category</a></li>
{% endif %}
</table>
{% endblock %}