feat: add a Mein Account group to the main menu and lock the page while the drawer is open
This commit is contained in:
1 parent
4530d2434b
commit
8a02b28d00
6 files changed
+164
-24
No files matched your search
@@ -3,7 +3,8 @@
|
||||
{#
|
||||
Sidebar layout of the E&P corporate design (ep-corporate-design, layout_sidebar.html.twig): the
|
||||
main menu in a left sidebar from lg up, below that in a drawer behind the "Menü" button. The area
|
||||
layouts fill `main_menu` and `mobile_menu` with the same KnpMenu menu.
|
||||
layouts fill `main_menu` and `mobile_menu` with the same KnpMenu menu, which ends with the account
|
||||
group; the header's user menu shows from lg up only.
|
||||
#}
|
||||
{% block body %}
|
||||
<div {{ stimulus_controller('drawer') }}>
|
||||
@@ -13,7 +14,7 @@
|
||||
} %}
|
||||
{% block header_end %}
|
||||
{% if app.user %}
|
||||
<div class="flex items-center">
|
||||
<div class="hidden lg:flex items-center">
|
||||
{% include '_partials/_user_menu.html.twig' %}
|
||||
</div>
|
||||
<button type="button" class="btn-tool self-center lg:hidden" aria-haspopup="dialog"
|
||||
@@ -42,7 +43,7 @@
|
||||
<img src="{{ asset('build/images/ep-logo.svg') }}" alt="" class="h-9 w-auto">
|
||||
<button type="button" class="btn-tool" {{ stimulus_action('drawer', 'close') }}>Schließen</button>
|
||||
</div>
|
||||
<nav class="flex-1 overflow-y-auto px-4 pb-8">
|
||||
<nav class="flex-1 overflow-y-auto overscroll-contain px-4 pb-8">
|
||||
{% block mobile_menu %}{% endblock %}
|
||||
</nav>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user