feat: adopt ep-design 1.4.0 in admin
This commit is contained in:
1 parent
21b00e3bd6
commit
fd3d88209c
4 files changed
+20
-10
No files matched your search
@@ -1,6 +1,7 @@
|
||||
{#
|
||||
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.
|
||||
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' %}
|
||||
|
||||
@@ -13,9 +14,12 @@
|
||||
} %}
|
||||
{% block header_end %}
|
||||
{% if app.user %}
|
||||
<span class="hidden self-center text-muted sm:inline">{{ app.user.userIdentifier }}</span>
|
||||
<span class="hidden lg:block self-center text-muted">{{ app.user.userIdentifier }}</span>
|
||||
<button type="button" class="btn-tool self-center lg:hidden" aria-haspopup="dialog"
|
||||
{{ stimulus_action('drawer', 'open') }}>Menü</button>
|
||||
{{ stimulus_action('drawer', 'open') }}>
|
||||
{{ include('_partials/_icon.html.twig', {icon: 'menu', class: 'h-4 w-4'}) }}
|
||||
Menü
|
||||
</button>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
{% endembed %}
|
||||
@@ -43,6 +47,10 @@
|
||||
<nav class="flex-1 overflow-y-auto 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