{% extends "admin/base_site.html" %} {% load i18n staticfiles admin_urls admin_static admin_list %} {% block extrastyle %}{{ block.super }} {% endblock %} {% block extrahead %} {{block.super}} {{form.media}} {% endblock %} {% if not is_popup %} {% block breadcrumbs %} {% endblock %} {% endif %} {% block content %}
{% csrf_token %}{% block form_top %}{% endblock %}
{% if form.errors %}

{% if errors|length == 1 %}{% trans "Please correct the error below." %}{% else %}{% trans "Please correct the errors below." %}{% endif %}

{% endif %} {% block field_sets %}

{% if not data_record %} {% trans "Add data record" %} {% else %} {% trans "Change data record" %} ({{data_record.id}}) {% endif %}

{% for field in form %}
{% if not field.is_readonly %}{{ field.errors }}{% endif %} {% if field.field.is_checkbox %} {{ field }} {% else %} {% if field.is_readonly %}

{{ field.contents }}

{% else %} {% if field.field.is_file_upload %}

{{field}}

{% else %} {{ field }} {% endif %} {% endif %} {% endif %} {% if field.field.help_text %}

{{ field.field.help_text|safe }}

{% endif %}
{% endfor %}
{% endblock %} {% block submit_buttons_bottom %}
{% if show_delete_link %} {% endif %} {% if show_save_and_add_another %}{% endif %} {% if show_save_and_continue %}{% endif %}
{% endblock %}
{% endblock %}