{% extends "dj_admin_plus/base.html" %} {% load dj_admin_plus %} {% block content %} {% include 'dj_admin_plus/title.html' with title=title %}
{% csrf_token %} {{ form.media }}
{% if form.non_field_errors %} {% endif %} {% if fieldsets %} {% for group_name, group in fieldsets %}
{% if group_name %}
{% endif %} {% for field_name in group.fields %} {% get_form_field_from_name form field_name as field %} {% include "dj_admin_plus/form-block.html" with field=field %} {% endfor %}
{% endfor %} {% else %} {% for field_name in form.fields %} {% get_form_field_from_name form field_name as field %} {% include "dj_admin_plus/form-block.html" with field=field %} {% endfor %} {% endif %}
{% if not add_mode %} {% endif %}
{% endblock %}