+ {% 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 %}
+
+
+ | {{ form.name.label }} |
+
+
+
+ {% endif %}
+
+ |
+ {# Force prefix on the form fields #}
+ {{ form.name.as_widget }}
+ |
+
+ {% endfor %}
+
+
+
+ {# Display buttons to add and remove ingredients #}
+
+
+
+
+
+
+
+