Dynastie/dynastie/templates/category.html

16 lines
676 B
HTML
Raw Normal View History

{% extends "base.html" %}
2012-07-08 16:23:39 +02:00
{% block content %}
<a href="/blog/{{ blog.id }}?page=0">Home</a> <a href="/category/{{ blog.id }}">Categories</a> <a href="/tag/{{ blog.id }}">Tags</a><br/><br/>
2012-07-08 16:23:39 +02:00
{% 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 %}
<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 }}" onclick="return confirm('Do you really want to delete this item ?')">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 %}