{% extends "admin/base_site.html" %}{% load i18n admin_urls admin_static admin_modify %}


{% block extrahead %}
    {{ block.super }}
    <script type="text/javascript" src="{% url 'admin:jsi18n' %}"></script>
    {{ media }}
{% endblock %}


{% block extrastyle %}
    {{ block.super }}
    <link rel="stylesheet" type="text/css" href="{% static "admin/css/forms.css" %}" />
{% endblock %}


{% block coltype %}colM{% endblock %}


{% block bodyclass %}{{ block.super }} app-{{ opts.app_label }} model-{{ opts.model_name }} change-form{% endblock %}


{% block content %}
<div id="content-main">
    <form action="." method="post" id="{{ opts.model_name }}_form" novalidate>
        {% csrf_token %}
        {% block form_top %}{% endblock %}
        <div>
            {% if form.errors %}
                <p class="errornote">
                    {% if errors|length == 1 %}
                        {% trans "Please correct the error below." %}
                    {% else %}
                        {% trans "Please correct the errors below." %}
                    {% endif %}
                </p>
                {{ form.non_field_errors }}
            {% endif %}

            <fieldset class="module aligned">
                <div class="form-row field-label">
                    <label class="required" for="{{ form.choices.auto_id }}">{{ form.choices.label }}</label>
                    {{ form.choices }}
                </div>
            </fieldset>

            {% block submit_buttons_bottom %}
            <div class="submit-row">
                <input type="submit" value="Add" class="default" name="_save">
            </div>
            {% endblock %}
            {% prepopulated_fields_js %}
        </div>
    </form>
</div>
{% endblock %}
