{% extends request.is_ajax|yesno:"aristotle_mdr/base_ajax.html,aristotle_mdr/base.html" %} {% load compile_static i18n %} {% block title %}Editing values for {{ item.name }}{% endblock %} {% block content %} {% block extra_head_scripts %} {% if request.is_ajax %} {{ form.media }} {% endif %} {% endblock %} Add a code (adding a row does not save changes)
{% with formset.forms|last as form %} {% for field in form.visible_fields %} {% endfor %} {% endwith %}
{% for hidden in form.hidden_fields %} {{ hidden }} {% endfor %} {# Include the hidden fields in the form #} {{ field.errors.as_ul }} {{ field }}
{% endblock %}