{# The admin in the sidebar layout of the E&P corporate design: the KnpMenu menu `admin_main` in a left sidebar from lg up, below that in a drawer behind the menu button. The menu ends with a "Mein Account" group (MyE&P, logout), so the account actions are in the sidebar and the drawer alike; the user in the header shows from lg up only, and the phone header holds just logo, app name and button. #} {% extends 'base_admin.html.twig' %} {% block body %}
{% embed 'admin/_partials/_header.html.twig' with { app_name: 'MyE&P Admin', home_path: path(app.user ? 'app_admin_dashboard' : 'app_login'), header_width: 'mx-auto max-w-screen-2xl px-4 lg:px-8', } %} {% block header_end %} {% if app.user %} {% endif %} {% endblock %} {% endembed %}
{% block content %}{% endblock %}
{% if app.user %} {# fills the dialog, so only clicks beside the drawer reach the dialog element itself #}
{# overscroll-contain: the nav doesn't hand leftover scrolling to the page #}
{% endif %}
{% endblock %}