You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
778 B
32 lines
778 B
{% 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|floatformat:2 }} €</td> |
|
<td> |
|
<a class="btn btn-default" href="{% url 'buy' p.id %}">Kaufen</a> |
|
<a class="btn btn-default" href="{% url 'product' p.id %}">Details</a> |
|
</td> |
|
</tr> |
|
{% endfor %} |
|
</table> |
|
|
|
{% endblock %}
|
|
|