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

{% trans "Consume Ingredients" %}


{% trans "Ingredient Categories" %} {% trans "Ingredient Meal Types" %}
{% if ingredients %} {% endif %} {% for date_h in date_range %} {% empty %} {% endfor %} {% for ingredient in ingredients %} {% empty %} {% trans "No ingredient found." %} {% endfor %}
{% trans "Ingredient Name" %} {% trans "Remaining Quantity" %} {{ date_h }} {% for meal_type in meal_types %}
| {% endfor %}
{{ ingredient.name }} {% if ingredient.meal_type != "" %}
{% blocktrans with meal_type=ingredient.meal_type.name category=ingredient.category.name %} ({{ meal_type }}, {{ category }}) {% endblocktrans %}
{% else %} {% blocktrans with category=ingredient.category.name%} ({{ category }}) {% endblocktrans %} {% endif %}
{{ ingredient_ids|json_script:'ingredient_ids' }} {{ months|json_script:'months' }} {{ meal_types|json_script:'meal_types' }} {{ date_range|json_script:'date_range' }} {{ storage_date_start|json_script:'storage_date_start' }} {{ storage_date_end|json_script:'storage_date_end' }} {% endblock %}