{% extends 'viewsets/base.html' %} {% load staticfiles i18n viewset_tags %} {% block extrahead %} {{ form_and_formsets_media }} {% endblock %} {% block breadcrumbs_items %} {% if viewset.view_index %} {% endif %} {% if object %} {% else %} {% endif %} {% endblock %} {% block body_title %}{% if object %}{{ object|capfirst }}: {% trans 'Edit' %}{% else %}{% trans 'Add' %}{% endif %}{% endblock %} {% block body %}
{% csrf_token %} {% if is_popup %} {% endif %} {{ block.super }}
{% endblock %} {% block content %} {% include 'viewsets/includes/_form.html' %} {% for formset in formsets.values %}

{{ formset.opts.verbose_name_plural|capfirst }}

{% include 'viewsets/includes/_formset.html' %} {% endfor %} {% endblock %} {% block content_footer %} {% if not is_popup %} {% if has_update_permission %} {% endif %} {% if has_create_permission %} {% endif %} {% endif %} {% if object and has_delete_permission %} {% trans 'Delete' %} {% endif %} {% endblock %}