{% extends "admin/base_site.html" %}
{% load admin_urls static l10n i18n %}
{% block extrastyle %}
    {{ block.super }}
    <link rel="stylesheet"
          type="text/css"
          href="{% static "admin/css/forms.css" %}">
{% endblock %}
{% block breadcrumbs %}
    <div class="breadcrumbs">
        <a href="{% url 'admin:index' %}">{% translate 'Home' %}</a>
        &rsaquo; <a href="{% url 'admin:app_list' app_label=cl.opts.app_label %}">{{ cl.opts.app_config.verbose_name }}</a>
        &rsaquo; <a href="{% url opts|admin_urlname:'changelist' %}">{{ opts.verbose_name_plural|capfirst }}</a>
        &rsaquo; {{ title }}
    </div>
{% endblock %}
{% block content %}
    <div id="content-main">
        <form method="post" enctype="multipart/form-data">
            {% csrf_token %}
            {% for obj in queryset.all %}
                <input type="hidden" name="_selected_action" value="{{ obj.pk|unlocalize }}" />
            {% endfor %}
            <div>
                {% if form.errors %}<p class="errornote">Please correct the errors below.</p>{% endif %}
                <fieldset class="module aligned wide">
                    {% for field in form %}
                        <div class="form-row">
                            {{ field.errors }}
                            {{ field.label_tag }} {{ field }}
                            {% if field.help_text %}<div class="help">{{ field.help_text|safe }}</div>{% endif %}
                        </div>
                    {% endfor %}
                </div>
            </fieldset>
            <div class="submit-row">
                <input type="hidden" name="action" value="{{ action }}" />
                <input type="submit" name="submit" value="Submit" class="default" />
            </div>
        </form>
    </div>
{% endblock %}
