{% extends "page_view.html" %} {% load i18n %} {% block head %} {{ block.super }} {{ form.media.css }} {{ formset.media.css }} {% for inline in inlines %}{{ inline.media.css }}{% endfor %} {% endblock head %} {% block page.content-wrapper %} {% comment %} The page's width comes from the view's `page_width`, which page_view.html hands to its container, so the title, anything before the form, the form and its buttons share one column and every left edge lines up. {% endcomment %} {% block page.title %} {% block page.actions %} {% endblock page.actions %} {% endblock page.title %} {% block page.content %} {% comment %} The gap spaces anything a page puts before or after the form, and spaces those pieces from each other — several stacked alerts, most often. {% endcomment %}
{% block before_form %} {% endblock before_form %} {% if next_url %}{% endif %} {% block formset %} {% if formset %}{% endif %} {% for inline in inlines %}{% endfor %} {% endblock formset %} {% comment %} Stacked and full width on a phone, a row from md up. The space above sets the buttons apart from the last field. {% endcomment %}
{% block actions %} {% if delete_url %} {# Pushed to the far end from md up, away from the save buttons. #}
{% endif %} {% endblock actions %}
{% block after_form %} {% endblock after_form %}
{% endblock page.content %}
{% endblock page.content-wrapper %} {% block extra_js %} {{ block.super }} {{ form.media.js }} {{ formset.media.js }} {% for inline in inlines %}{{ inline.media.js }}{% endfor %} {% endblock extra_js %}