Frederic
11 years ago
3 changed files with 54 additions and 1 deletions
@ -0,0 +1,32 @@
@@ -0,0 +1,32 @@
|
||||
{% extends "cash/base.html" %} |
||||
{% load url from future %} |
||||
|
||||
|
||||
{% block content %} |
||||
|
||||
Kategorie: |
||||
<ul> |
||||
<li {% if not category %}style="font-weight: bold"{% endif %}><a href="{% url 'products' %}">Alle Kategorien</a></li> |
||||
{% for c in categories %} |
||||
<li {% if c == category %}style="font-weight: bold"{% endif %}><a href="{% url 'products' %}{{c.id}}">{{ c.name }}</a></li> |
||||
{% endfor %} |
||||
</ul> |
||||
|
||||
|
||||
<table> |
||||
<thead> |
||||
<tr><td>Name</td><td>Preis</td><td>Aktionen</td></tr> |
||||
</thead> |
||||
{% for p in product_list %} |
||||
<tr> |
||||
<td>{{ p.name }}</td> |
||||
<td>{{ p.price }} €</td> |
||||
<td> |
||||
<a href="{% url 'buy' p.id %}">Kaufen</a> |
||||
<a href="{% url 'product' p.id %}">Details</a> |
||||
</td> |
||||
</tr> |
||||
{% endfor %} |
||||
</table> |
||||
|
||||
{% endblock %} |
Loading…
Reference in new issue