{% extends 'planner/base.html' %}{% load static %} {% block title %}Add to Kitchen Inventory · Tasknest{% endblock %} {% block content %}
← Kitchen Inventory

Add to inventory

{% if product %}
{% if product.image_url %}{% endif %}

{{ product.product_name }}

{% if product.brand %}

{{ product.brand }}

{% endif %}{% if product.package_quantity %}

{{ product.package_quantity }}

{% endif %}{% if off_categories %}

Open Food Facts: {{ off_categories }}

{% endif %}
{% if existing %}

Already in inventory

{% for item in existing %}
{{ item.location.name }} · Quantity {{ item.quantity }}{% if item.best_before %} · Best before {{ item.best_before }}{% endif %}
{% csrf_token %}
{% endfor %}

Use the form below to add this product separately.

{% endif %}
{% csrf_token %}{{ form.non_field_errors }} {% for field in form %}
{{ field.label_tag }}{% if field.name == 'quantity' %}
{{ field }}
{% else %}{{ field }}{% endif %}{{ field.errors }}
{% endfor %} {% for location in locations %}{% for category in categories %}
Choose another product {% else %} {% include 'food/partials/inventory_product_actions.html' %} {% include 'food/partials/inventory_product_actions.html' %}
{% csrf_token %}
{% endif %}
{% endblock %}