{% extends 'planner/base.html' %}{% load static %} {% block title %}{% if creating %}New recipe{% else %}Edit {{ recipe.title }}{% endif %} · Tasknest{% endblock %} {% block page_class %}recipes-page-content{% endblock %} {% block content %}
← Back to recipes

{% if creating %}New recipe{% else %}Edit recipe{% endif %}

Keep ingredients structured and instructions in Markdown.

{% csrf_token %} {% if creating %}{% endif %} {% if form.non_field_errors %}{% endif %}

Recipe details

{% for field in form %}{% if field.name == 'markdown_revision' %}{{ field }}{% elif field.name == 'photo' %}
Recipe photo

{% if field.errors %}{% endif %}
{% elif field.name != 'remove_photo' %}
{{ field }}{% if field.name == 'instructions_markdown' or field.name == 'notes_markdown' %}
{% endif %}{% if field.help_text %}{{ field.help_text }}{% endif %}{% if field.errors %}{% endif %}
{% endif %}{% endfor %}

Ingredients

Add measured ingredients now; product matching can be refined later.

{{ ingredients.management_form }}{% if ingredients.non_form_errors %}{% endif %}
{% for ingredient in ingredients %}{% include 'recipes/ingredient_row.html' %}{% endfor %}

Subrecipes

Include an independently editable recipe as a component.

{{ subrecipes.management_form }}{% if subrecipes.non_form_errors %}{% endif %}
{% for subrecipe in subrecipes %}{% include 'recipes/subrecipe_row.html' %}{% endfor %}
Cancel{% if creating %}Add a title to start autosave.{% else %}Saved{% endif %}
{% endblock %}