{% extends "admin/base_site.html" %} {% load admin_modify djblets_js djblets_utils i18n pipeline rbadmintags %} {% load staticfiles %} {% block global-vars %} {{block.super}} {% definevar "form_id" spaceless global %} {% block form_id %}{{opts.model_name|default:"change"}}_form{% endblock %} {% enddefinevar %} {% endblock global-vars %} {% block page_class %}{{opts.app_label}}-{{opts.object_name.lower}}{% endblock %} {% block page-sidebar-css-classes %}-is-connected{% endblock %} {% block js-page-view-type %}RB.Admin.ChangeFormPageView{% endblock %} {% block js-page-view-options %}{formID: {{form_id|json_dumps}}}{% endblock %} {% block bodyclass %}{{ opts.app_label }}-{{ opts.object_name.lower }} change-form -is-content-flush-on-mobile{% endblock %} {% block css %} {{block.super}} {% if adminform %} {{media.css}} {% elif form %} {% for bundle_name in form.css_bundle_names %} {% stylesheet bundle_name %} {% endfor %} {{form.media.css}} {% endif %} {% endblock css %} {% block object-tools %} {% if change and not is_popup %} {% block object-tools-items %}{% endblock %} {% endif %} {% endblock object-tools %} {% block content %} {% block form_tag %}
{% endblock form_tag %} {% csrf_token %} {% if is_popup %} {% endif %} {% block form-alerts %} {% if errors %}

{% spaceless %} {% blocktrans count counter=errors %} Please correct the error below. {% plural %} Please correct the errors below. {% endblocktrans %} {% endspaceless %}

{% if adminform %} {{adminform.form.non_field_errors}} {% elif form %} {{form.non_field_errors}} {% endif %}
{% endif %} {% endblock form-alerts %}
{% block form_content %} {% block form_top %}{% endblock %} {% block field_sets %} {% if adminform %} {% for fieldset in adminform|change_form_fieldsets %} {% render_change_form_fieldset fieldset %} {% endfor %} {% endif %} {% endblock field_sets %} {% block after_field_sets %}{% endblock %} {% block inline_field_sets %} {% if inline_admin_formsets %} {% for inline_admin_formset in inline_admin_formsets %} {% include inline_admin_formset.opts.template %} {% endfor %} {% endif %} {% endblock inline_field_sets %} {% block after_related_objects %}{% endblock %} {% endblock form_content %} {% comment %} NOTE: Much of the block setup here is to satisfy compatibility with older versions of Review Board, with Django, and with Djblets' templates. Ideally, we'd replace Django's {% submit_row %} with something else, but that's a task for another day. {% endcomment %} {% block submit_buttons_bottom %} {% block submit_row %}
{% block submit_row_buttons %} {% change_form_submit_buttons %} {% endblock submit_row_buttons %}
{% endblock submit_row %} {% endblock submit_buttons_bottom %}
{% endblock content %} {% block scripts-post %} {{block.super}} {% if adminform %} {{media.js}} {% elif form %} {% for bundle_name in form.js_bundle_names %} {% javascript bundle_name %} {% endfor %} {{form.media.js}} {% endif %} {% block admin_change_form_document_ready %} {% endblock %} {% prepopulated_fields_js %} {% endblock scripts-post %}