{% comment %} Base template for all django_cradmin templates. You should extend this directly for standalone pages like login and error pages. For pages that require a role, you should extend ``base.django.html`` instead. {% endcomment %}{% spaceless %} {% load static %} {% load cradmin_tags %} {% load cradmin_javascriptregistry_tags %} {% endspaceless %} {% block head %} {% block meta %} {% block extra_meta %}{% endblock extra_meta %} {% endblock meta %} {% comment %} The title tag contains two blocks: - ``title``: Overridden per page. - ``title-pre`` and ``title-post``: Typically overridden by overriding ``standalone-base.django.html`` to provide some common prefix/postfix for the the title tag for the entire site. {% endcomment %} {% block title-pre %}{% endblock %}{% block title %}{% endblock %}{% block title-post %}{% endblock %} {% block styles %} {% endblock styles %} {% block javascriptregistry-head %} {% cradmin_javascriptregistry_head %} {% endblock javascriptregistry-head %} {% endblock head %} {% block global-pre-body %} {% comment %} This block is here to be overridden in standalone-base.django.html and base.django.html. It should be used to add some global component before the body, such as a global navigation header. This block is not intended to be, and should never be overridden in app views. {% endcomment %} {% endblock global-pre-body %} {% block body %} {% block header %} {% comment %} A common header for many pages. This is not part of the ``
`` content of the page, so you should not add your H1 here. {% endcomment %} {% endblock header %} {% block main %}
{% block main-content %} {% block page-cover %}
{% block page-cover-content %}

{% block page-cover-title %}{% endblock page-cover-title %}

{% endblock page-cover-content %}
{% endblock page-cover %} {% block messages %} {% if messages %}
{% include "django_cradmin/include/messages.django.html" %}
{% endif %} {% endblock messages %} {% block content %}{% endblock %} {% endblock main-content %}
{% endblock main %} {% block footer %}{% endblock footer %} {% block toggleable-menu %} {% comment %} If you have a toggleable menu, put the hidden part of the menu in this block. The button that toggles the menu is typically added to the ``header`` block. {% endcomment %} {% endblock toggleable-menu %} {% endblock body %} {% block global-post-body %} {% comment %} This block is here to be overridden in standalone-base.django.html and base.django.html. It should be used to add some global component after the body, such as a global footer header. This block is not intended to be, and should never be overridden in app views. {% endcomment %} {% endblock global-post-body %} {% block javascriptregistry-end-of-body %} {% cradmin_javascriptregistry_end_of_body %} {% endblock javascriptregistry-end-of-body %} {% block end-of-body %}{% endblock end-of-body %}