{% extends "base/document.html" %} {% load crispy_forms_tags %} {% block title %} {% trans "Consume Ingredients" %} {% endblock %} {% block content %}

{% trans "Consume Ingredients" %}

{% include 'canteen/includes/_canteen_navigation.html' %}
{% if meal_types %}
{% endif %} {% if categories %}
{% endif %}
{% if ingredients %} {% endif %} {% for date_h in date_range %} {% empty %} {% endfor %} {% for ingredient in ingredients %} {% empty %} {% trans "No ingredient found." %} {% endfor %}
{% trans "Ingredient Name" %} {% blocktrans with ingredients_len=ingredients|length %} ({{ingredients_len}}) {% endblocktrans %} {% trans "Remaining Quantity" %} {{ date_h }} {% for meal_type in meal_types %}
| {% endfor %}
{{ ingredient.name }} {% if ingredient.meal_type.name %}
{% blocktrans with meal_type=ingredient.meal_type.name category=ingredient.category.name storage_date=ingredient.storage_date|date:"Ymd" %} ({{ category }},{{ meal_type }},{{ storage_date }}) {% endblocktrans %} {% else %}
{% blocktrans with category=ingredient.category.name storage_date=ingredient.storage_date|date:"Ymd" %} ({{ category }},{{ storage_date }}) {% endblocktrans %} {% endif %}
{{ ingredient_ids|json_script:'ingredient_ids' }} {{ months|json_script:'months' }} {{ meal_type_names|json_script:'meal_type_names' }} {{ date_range|json_script:'date_range' }} {{ storage_date_start|json_script:'storage_date_start' }} {{ storage_date_end|json_script:'storage_date_end' }} {% endblock %}