product_list.jinja 537 Bytes
Newer Older
Skia's avatar
Skia committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{% extends "core/base.jinja" %}

{% block title %}
{% trans %}Product list{% endtrans %}
{% endblock %}

{% block content %}
<p><a href="{{ url('counter:new_product') }}">{% trans %}New product{% endtrans %}</a></p>
{% if product_list %}
<h3>{% trans %}Product list{% endtrans %}</h3>
<ul>
    {% for p in product_list  %}
    <li><a href="{{ url('counter:product_edit', product_id=p.id) }}">{{ p }}</a></li>
    {% endfor %}
</ul>
{% else %}
{% trans %}There is no products in this website.{% endtrans %}
{% endif %}
{% endblock %}