{% load i18n admin_tabs %} {% if tabs %}
{% for tab in tabs %} {% if tab.enabled %}
{% for item in tab.items %} {% if item.is_fieldset %} {% with fieldset=item.fieldset %} {% include "admin/includes/fieldset.html" %} {% endwith %} {% elif item.is_ajax_inline %} {{ item.render }} {% else %} {% with inline_admin_formset=item.formset %} {% if inline_admin_formset %} {% include inline_admin_formset.opts.template %} {% endif %} {% endwith %} {% endif %} {% endfor %}
{% endif %} {% endfor %}
{% endif %}