{# Base page template. This template defines the overall structure of a web page, including header, footer, sidebar, main content area, and notification messages. It uses blocks to allow for customization and extension in child templates. #} {% extends "_base.html" %} {%- block page %} {#- Zone start block - for any content to be placed at the start of the page -#}
{%- block zone_start -%}{%- endblock -%}
{#- Zone header block - contains page headers -#}
{%- block zone_header -%} {# Header block - contains the site header, logo, main/account navigation, etc. #} {%- block header %} {% include "_header.html" %} {%- endblock header %} {%- endblock zone_header -%}
{#- Zone toolbar block - contains the global tools, like breadcrumbs -#}
{%- block zone_toolbar %} {#- Breadcrumb block - contains the breadcrumb navigation #} {%- block breadcrumb %} {%- call ui.util.call(ui.breadcrumb_wrapper) -%} {{ ui.breadcrumb("Home", h.url_for("home.index"), initial=true) }} {%- block breadcrumb_content %}{% endblock %} {%- endcall %} {%- endblock breadcrumb %} {%- endblock -%}
{#- Zone intro block - contains objects shown before the main content -#}
{%- block zone_intro %} {%- block notifications_container %}
{%- for category, message in h.get_flashed_messages(with_categories=true) %} {%- block notification_item scoped -%}
{{ h.literal(message) }}
{%- endblock notification_item %} {%- endfor -%}
{%- endblock notifications_container %} {%- endblock %}
{#- Zone content block - contains the main content area -#}
{%- block zone_content %} {%- block content -%}
{%- block zone_main -%}
{%- block zone_secondary -%} {%- block secondary %} {%- endblock secondary -%} {%- endblock zone_secondary -%}
{#--#}
{%- block zone_primary -%} {%- block primary -%}
{%- block primary_content %} {%- call ui.util.call(ui.page_action_wrapper) -%} {%- block page_action %}{% endblock -%} {%- endcall %} {%- block page_header %} {%- call ui.util.call(ui.content_nav_wrapper) -%} {%- block content_nav %}{% endblock -%} {%- endcall %} {% endblock -%} {%- call ui.util.call(ui.content_action_wrapper) -%} {%- block content_action %}{% endblock -%} {%- endcall %} {%- block primary_content_inner %} {% endblock -%} {%- endblock primary_content %}
{%- endblock primary %} {%- endblock zone_primary -%}
{%- endblock zone_main -%}
{%- endblock content %} {%- endblock zone_content -%}
{#- Zone outro block - contains objects shown after the main content -#}
{%- block zone_outro %}{% endblock -%}
{#- Zone footer block - contains page footers -#} {# Zone end block - for any content to be placed at the end of the page #}
{%- block zone_end -%}{%- endblock %}
{%- endblock %}