feat: adopt ep-design 1.5.0 in admin
This commit is contained in:
1 parent
fd3d88209c
commit
6cfaaf1ba9
3 files changed
+28
-20
No files matched your search
@@ -1,7 +1,8 @@
|
||||
{#
|
||||
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.
|
||||
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' %}
|
||||
|
||||
@@ -44,13 +45,10 @@
|
||||
<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">
|
||||
{# overscroll-contain: the nav doesn't hand leftover scrolling to the page #}
|
||||
<nav class="flex-1 overflow-y-auto overscroll-contain px-4 pb-8">
|
||||
{{ knp_menu_render('admin_main') }}
|
||||
</nav>
|
||||
{# the user as in the header from lg up; logout is an entry of admin_main #}
|
||||
<div class="border-t border-line px-6 py-4">
|
||||
<p class="text-muted">{{ app.user.userIdentifier }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</dialog>
|
||||
{% endif %}
|
||||
|
||||
Reference in new issue
Block a user