{# this file is the bridge between adminlte3 and flask-admin template Every block in `flask-admin/base.html` should be nested in a block from `BASE_TEMPLATE` #} {% extends config.BASE_TEMPLATE %} {% import 'admin/layout.html' as layout with context -%} {% import 'admin/static.html' as admin_static with context %} {% import 'flask-admin/static.html' as adminlte_static with context %} {% block title %}{{admin_view.name}} | {{super()}}{%endblock%} {% block stylesheets %} {{super()}} {% block head_css %} {%if config.ASSETS_ADMIN_CSS%} {# assets config.ASSETS_ADMIN_CSS %}{%endassets#} {%else%} {%endif%} {% if admin_view and admin_view.extra_css %} {% for css_url in admin_view.extra_css %} {% endfor %} {% endif %} {% endblock head_css %} {% endblock stylesheets %} {%block page_header %}{%endblock%} {% block page_content %} {% set render_ctx = h.resolve_ctx() %} {% block body %} {% endblock body %} {% endblock page_content %} {% block messages %} {# TODO: uncomment this if toastr is disabled #} {% if not toastr %} {{ layout.messages() }} {% endif %} {% endblock messages %} {% block javascripts %} {{super()}} {% block tail_js %} {%if config.ASSETS_ADMIN_JS%} {# assets config.ASSETS_ADMIN_JS %}{%endassets#} {%else%} {%endif%} {% if admin_view and admin_view.extra_js %} {% for js_url in admin_view.extra_js %} {% endfor %} {% endif %} {% endblock tail_js %} {% block tail%} {% endblock %} {% endblock javascripts %}