{% extends 'planner/base.html' %}{% load static %} {% block title %}Build a recipe · Tasknest{% endblock %} {% block content %}
← Back to recipes

Build a recipe

Create a new recipe from explicitly selected components. Linked suggestions are never included.

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

New recipe

Choose components

Select up to ten recipes and set the servings to include from each.

{% for item in available %}{% empty %}

Create a recipe first to use it as a component.

{% endfor %}
{% if preview %}

Component preview

Preview only. Creating this recipe will preserve each source recipe and add explicit component references.

Combined nutrition estimate

{% for row in nutrition_preview %}{{ row.label }}: {% if row.total is not None %}{{ row.total|floatformat:1 }} {{ row.unit }}{% else %}unknown{% endif %}{% if not row.complete %} · incomplete{% endif %}{% if not forloop.last %} · {% endif %}{% endfor %}

{% if duplicates %}

Ingredient overlap: {% for name in duplicates %}{{ name }}{% if not forloop.last %}, {% endif %}{% endfor %}. Check that these components should both be included.

{% endif %}{% for component, result in preview %}

{{ component.title }} · {{ result.servings }} servings

    {% for line in result.lines %}
  • {{ line.quantity|floatformat:-3 }} {{ line.unit }} {{ line.name }}
  • {% empty %}
  • No structured ingredients yet.
  • {% endfor %}

{% for row in result.nutrition_rows %}{{ row.label }}: {% if row.total is not None %}{{ row.total|floatformat:1 }} {{ row.unit }}{% else %}unknown{% endif %}{% if not row.complete %} · incomplete{% endif %}{% if not forloop.last %} · {% endif %}{% endfor %}

{% if result.issues %}

Nutrition or inventory data may be incomplete.

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