{% extends "core/base.jinja" %}
{% block title %}
{% trans %}{{ shoppinglist }}'s items{% endtrans %}
{% endblock %}
{% block content %}
{% if current_tab == "stocks" %}
{% trans %}Back{% endtrans %}
{% endif %}
{{ shoppinglist.name }}
{% for t in ProductType.objects.order_by('name').all() %}
{% if shoppinglist.shopping_items_to_buy.filter(type=t) %}
{{ t }}
{% trans %}Name{% endtrans %} |
{% trans %}Quantity asked{% endtrans %} |
{% trans %}Quantity bought{% endtrans %} |
{% for i in shoppinglist.shopping_items_to_buy.filter(type=t).order_by('name').all() %}
{{ i.name }} |
{{ i.tobuy_quantity }} |
{{ i.bought_quantity }} |
{% endfor %}
{% endif %}
{% endfor %}
{% trans %}Other{% endtrans %}
{% trans %}Comments{% endtrans %} |
{{ shoppinglist.comment }} |
{% endblock %}