Initial commit

This commit is contained in:
2012-07-08 16:23:39 +02:00
commit 46f9d19def
316 changed files with 47583 additions and 0 deletions

16
templates/category.html Normal file
View File

@@ -0,0 +1,16 @@
{% 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 %}