{# 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. Below lg the user moves into the drawer too, so the phone header holds only 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 #}
{# the user as in the header from lg up; logout is an entry of admin_main #}

{{ app.user.userIdentifier }}

{% endif %}
{% endblock %}