{% 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 %} {% endspaceless %} {% block extra_meta %}{% endblock extra_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 iconlibrary %} {% endblock iconlibrary %} {% block vendorjs %} {% endblock vendorjs %} {% block momentjslocale %} {% if DJANGO_CRADMIN_MOMENTJS_LOCALE %} {% endif %} {% endblock momentjslocale %} {% block cradminjs %} {% endblock cradminjs %} {% block jsimports %} {# Override this to add js imports in child templates #} {% endblock %} {% comment %} Send in cradmin_javascript_library_urls as context data to render them as script tags. {% endcomment %} {% if cradmin_javascript_library_urls %} {% for cradmin_javascript_library_url in cradmin_javascript_library_urls %} {% endfor %} {% endif %}
{% 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 %}{% 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 %} {% comment %} To customize the angularjs libraries available in your views, you can do one of the following: - Send in a list/iterable of angularJS libraries to load via the ``cradmin_extra_angular_libraries`` context variable. - Override the ``initialize_angular`` block. This is hard to maintain because you override everything inherited from parent views. In both cases, you also have to load the library javascript code via the ``cradmin_javascript_library_urls`` template context variable (documented above), or by overriding the ``jsimports`` block. {% endcomment %} {% block initialize_angular %} {% endblock %}
{% block outside-bodycontentwrapper %}{% endblock outside-bodycontentwrapper %} {% block end-of-body %}{% endblock end-of-body %}