Dynastie/templates/category.html

15 lines
474 B
HTML
Raw Normal View History

2012-07-08 16:23:39 +02:00
{% extends "templates/base.html" %}
{% block content %}
{% 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-09 20:47:12 +02:00
<tr><td>{{ category.id }}</td><td>{{ category.name }}</td><td><a href="/category/edit/{{ category.id }}">Edit</a></td><td><a href="/category/delete/{{ category.id }}">Delete</a></td></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 %}
2012-10-09 20:47:12 +02:00
<li><a href="/category/add">Add a category</a></li>
2012-07-08 16:23:39 +02:00
{% endblock %}