mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 14:13:21 +00:00
27 lines
752 B
Django/Jinja
27 lines
752 B
Django/Jinja
{% extends "core/base.jinja" %}
|
|
|
|
{% block title %}
|
|
{% trans %}Product list{% endtrans %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
{% if current_tab == "products" %}
|
|
<p><a href="{{ url('counter:new_product') }}">{% trans %}New product{% endtrans %}</a></p>
|
|
{% endif %}
|
|
<h3>{% trans %}Product list{% endtrans %}</h3>
|
|
{%- for product_type, products in object_list -%}
|
|
<h4>{{ product_type or _("Uncategorized") }}</h4>
|
|
<ul>
|
|
{%- for product in products -%}
|
|
<li><a href="{{ url('counter:product_edit', product_id=product.id) }}">{{ product.name }} ({{ product.code }})</a></li>
|
|
{%- endfor -%}
|
|
</ul>
|
|
{%- else -%}
|
|
{% trans %}There is no products in this website.{% endtrans %}
|
|
{%- endfor -%}
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|