{% extends 'base.html' %} {% load static %} {% block title %}Cook Assistant — PickkerMarket{% endblock %} {% block content %}

{{ t.cook_hero_title }}

{{ t.cook_hero_subtitle }}

{% csrf_token %}
{% if error %}
{{ error }}
{% endif %} {% if result %}

{{ t.cook_shopping_list_for }} "{{ result.dish }}"

{% if result.matched %}
{% csrf_token %} {% for item in result.matched %} {% endfor %}
{{ t.cook_th_ingredient }}{{ t.cook_th_market_as }}{{ t.cook_th_price }}
{{ item.ingredient_name }} ({{ item.quantity_text }}) {{ item.product.name }} TSh {{ item.product.market_price|floatformat:0 }}/{{ item.product.unit }}
{% endif %} {% if result.unmatched %}

{{ t.cook_not_in_market }} {% for item in result.unmatched %}{{ item.ingredient_name }}{% if not forloop.last %}, {% endif %}{% endfor %}

{% endif %} {% if not result.matched and not result.unmatched %}

{{ t.cook_no_match }}

{% endif %}
{% endif %}
{% endblock %}