<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* @System/layouts/system_layout.html.twig */
class __TwigTemplate_0926bb30bf55e033c4cc8171cbae7cae248314e9601d40990ca4ad8ec5a9dbf4 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'sidebar_nav' => [$this, 'block_sidebar_nav'],
'sidebar_footer' => [$this, 'block_sidebar_footer'],
];
}
protected function doGetParent(array $context)
{
// line 33
return "@Application/framework/cp_module_layout.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@System/layouts/system_layout.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@System/layouts/system_layout.html.twig"));
// line 35
$context["module_brand"] = "Administration";
// line 36
$context["module_context"] = "System & Access";
// line 37
$context["module_icon"] = "settings";
// line 38
$context["module_accent"] = "#546074";
// line 39
$context["module_accent_hover"] = "#445063";
// line 40
$context["module_accent_dim"] = "rgba(84,96,116,.10)";
// line 41
$context["active_module"] = "admin";
// line 42
$context["active"] = ((array_key_exists("active", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["active"]) || array_key_exists("active", $context) ? $context["active"] : (function () { throw new RuntimeError('Variable "active" does not exist.', 42, $this->source); })()), "")) : (""));
// line 33
$this->parent = $this->loadTemplate("@Application/framework/cp_module_layout.html.twig", "@System/layouts/system_layout.html.twig", 33);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 44
public function block_sidebar_nav($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sidebar_nav"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sidebar_nav"));
yield from $this->loadTemplate("@Application/framework/_admin_nav.html.twig", "@System/layouts/system_layout.html.twig", 44)->unwrap()->yield($context);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
return; yield '';
}
// line 46
public function block_sidebar_footer($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sidebar_footer"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "sidebar_footer"));
// line 47
yield " <a href=\"";
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("dashboard");
yield "\" 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>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "@System/layouts/system_layout.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 107 => 47, 97 => 46, 77 => 44, 66 => 33, 64 => 42, 62 => 41, 60 => 40, 58 => 39, 56 => 38, 54 => 37, 52 => 36, 50 => 35, 37 => 33,);
}
public function getSourceContext()
{
return new Source("{#
@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 %}
", "@System/layouts/system_layout.html.twig", "/home/u405565514/domains/ourhoneybee.eu/public_html/honeybee_main/src/ApplicationBundle/Modules/System/Resources/views/layouts/system_layout.html.twig");
}
}