{% extends 'admin/master.html' %} {% import 'velox/lib/forms.html' as lib with context %} {% block body %}
There are {{ forms|length }} forms on this page for editing {{ obj }}. Each form has its own Save clicking that button will only submit that forms data. Alternatively you can click the Cancel button to exit{% if delete_url %} or delete this record by clicking the Delete button{% endif %}.
{% endblock %} {% for prefix, values in forms.iteritems() %} {% set name, form = values %} {% call lib.form(form=form, action=submit_url(id=object.id), legend=name, prefix=prefix) %} {{ lib.form_fields(form) }} {% call lib.form_controls() %} {{ lib.save_button() }} {% if delete_url %} {{ lib.delete_button(delete_url) }} {% endif %} {{ lib.cancel_button(cancel_url) }} {% endcall %} {% endcall %} {% endfor %} {% endblock %}