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.
|
|
|
{% extends "cash/base.html" %}
|
|
|
|
{% load url from future %}
|
|
|
|
{% load i18n %}
|
|
|
|
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
|
|
|
{% trans "Category" %}:
|
|
|
|
<ul>
|
|
|
|
<li {% if not category %}style="font-weight: bold"{% endif %}><a href="{% url 'products' %}">{% trans "All categories" %}</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>{% trans "Name" %}</td><td>{% trans "price" %}</td><td>{% trans "Actions" %}</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 %}">{% trans "Buy" %}</a>
|
|
|
|
<a class="btn btn-default" href="{% url 'product' p.id %}">{% trans "Details" %}</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
|
|
|
|
{% endblock %}
|