{% extends "admin/base_site_nav.html" %} {% load i18n admin_modify %} {% block extrahead %}{{block.super}} {{media}} {% endblock %} {% block extrastyle %} {{block.super}}{% endblock %} {% block bodyclass %}change-form{% endblock %} {% block content_title %}
{% block tools %}{% endblock %}{% if title %}

{{title|escape}}

{% endif %} {% if object_id %}{% set active_tab 'edit' %} {% if opts.object_name.lower == 'bucket' %}{% include "buckettabs.html" %} {% elif opts.object_name.lower == 'buffer' %}{% include "buffertabs.html" %} {% elif opts.object_name.lower == 'calendar' %}{% include "calendartabs.html" %} {% elif opts.object_name.lower == 'customer' %}{% include "customertabs.html" %} {% elif opts.object_name.lower == 'demand' %}{% include "demandtabs.html" %} {% elif opts.object_name.lower == 'flow' %}{% include "flowtabs.html" %} {% elif opts.object_name.lower == 'forecast' %}{% include "forecasttabs.html" %} {% elif opts.object_name.lower == 'group' %}{% include "grouptabs.html" %} {% elif opts.object_name.lower == 'item' %}{% include "itemtabs.html" %} {% elif opts.object_name.lower == 'load' %}{% include "loadtabs.html" %} {% elif opts.object_name.lower == 'location' %}{% include "locationtabs.html" %} {% elif opts.object_name.lower == 'operation' %}{% include "operationtabs.html" %} {% elif opts.object_name.lower == 'resource' %}{% include "resourcetabs.html" %} {% elif opts.object_name.lower == 'setupmatrix' %}{% include "setupmatrixtabs.html" %} {% endif %}{% endif %}{% endblock %} {% block content %}
{% csrf_token %}{% block form_top %}{% endblock %}
{% if is_popup %}{% endif %} {% if save_on_top %}{% submit_row %}{% endif %} {% if errors %}

{% blocktrans count errors|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %}

{{adminform.form.non_field_errors}} {% endif %} {% for fieldset in adminform %} {% include "admin/includes/fieldset.html" %} {% endfor %} {% block after_field_sets %}{% endblock %} {% for inline_admin_formset in inline_admin_formsets %} {% include inline_admin_formset.opts.template %} {% endfor %} {% block after_related_objects %}{% endblock %} {% submit_row %} {% if adminform and add %} {% endif %} {# JavaScript for prepopulated fields #} {% prepopulated_fields_js %}
{% endblock %}