{% extends "base.html" %} {% comment %} Copyright (C) 2018-2025 by BDE ENS Paris-Saclay SPDX-License-Identifier: GPL-3.0-or-later {% endcomment %} {% load i18n crispy_forms_tags %} {% block content %}

{{ title }}

{% csrf_token %}
{% crispy recipe_form %} {# Keep all form elements in the same card-body for proper structure #} {{ formset.management_form }}

{% trans "Add ingredients" %}

{% for form in formset %} {% if forloop.first %} {% endif %} {% endfor %}
{{ form.name.label }}
{# Force prefix on the form fields #} {{ form.name.as_widget }}
{# Display buttons to add and remove ingredients #}
{# Hidden div that store an empty supplement form, to be copied into new forms #} {% endblock %} {% block extrajavascript %} {% endblock %}