{#
@System/layouts/system_layout.html.twig
══════════════════════════════════════════════════════════════════════════════
cp-shell layout for the System / Administration pages — users, permissions,
approval settings, company records, files, change log.
A page does:
{% extends '@System/layouts/system_layout.html.twig' %}
{% set active = 'approval_settings' %}
{% set page_title = 'Approval Settings' %}
{% block body %} … {% endblock %}
Two deliberate choices, both from HONEYBEE_UI_UNIFICATION_PLAN.md:
1. EXTENDS the framework layout instead of re-implementing the shell.
tax_layout and ca_layout each paste their own copy of .cp-shell/.cp-sidebar
into a local <style>. That holds until the framework moves, and then those
modules drift silently — the exact debt this phase exists to stop. Everything
here comes from cp_module_layout, so there is one shell, not three.
2. The nav is the EXISTING @Application/framework/_admin_nav.html.twig, not a
new one. It already links these routes (system_admin_user_list,
approval_settings, module_access_settings, company_list,
file_management_list, change_log …). A second admin nav would have added an
11th vocabulary in the phase that argues for converging the existing ten.
Identity is set inline, matching sales_layout. There IS a registry
(_cp_module_profiles) meant to hold this, but it has no consumers and its
documented usage — {% include %} then read the variable — cannot work here:
`include` emits output, and a template that extends another may not emit before
its blocks. Left alone rather than half-adopted.
#}
{% extends '@Application/framework/cp_module_layout.html.twig' %}
{% set module_brand = 'Administration' %}
{% set module_context = 'System & Access' %}
{% set module_icon = 'settings' %}
{% set module_accent = '#546074' %}
{% set module_accent_hover = '#445063' %}
{% set module_accent_dim = 'rgba(84,96,116,.10)' %}
{% set active_module = 'admin' %}
{% set active = active|default('') %}
{% block sidebar_nav %}{% include '@Application/framework/_admin_nav.html.twig' %}{% endblock %}
{% block sidebar_footer %}
<a href="{{ path('dashboard') }}" class="cp-nav-link" style="font-size:12px;">
<span class="cp-nav-icon"><i class="material-icons" style="font-size:14px">arrow_back</i></span>
<span>Back to ERP</span></a>
{% endblock %}