wip: continue implementation
This commit is contained in:
+18
-55
@@ -1,58 +1,21 @@
|
||||
{% extends 'base.html.twig' %}
|
||||
|
||||
{% block body %}
|
||||
<div id="app">
|
||||
<div class="container py-8"
|
||||
id="app"
|
||||
hx-boost="true"
|
||||
hx-indicator="#loading-indicator">
|
||||
<div class="relative z-20 flex items-center justify-between pb-4">
|
||||
<img class="h-8 w-auto" src="{{ asset('build/images/logo.svg') }}" alt="My E&P Team">
|
||||
{% if is_granted('ROLE_USER') %}
|
||||
<nav>
|
||||
<ul>
|
||||
<li><strong>MyE&P BETA</strong></li>
|
||||
</ul>
|
||||
<ul>
|
||||
<li>
|
||||
<a href="#"
|
||||
class="contrast"
|
||||
hx-get="{{ path('app_personal_data') }}"
|
||||
hx-target="#app"
|
||||
hx-swap="innerHTML"
|
||||
hx-indicator="#loading-indicator">
|
||||
Persönliche Daten
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#"
|
||||
class="contrast"
|
||||
hx-get="{{ path('app_bookings') }}"
|
||||
hx-target="#app"
|
||||
hx-swap="innerHTML"
|
||||
hx-indicator="#loading-indicator">
|
||||
Buchungen
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="#"
|
||||
class="contrast"
|
||||
hx-get="{{ path('app_logout') }}"
|
||||
hx-target="#app"
|
||||
hx-swap="innerHTML"
|
||||
hx-indicator="#loading-indicator">
|
||||
Logout
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
{% endif %}
|
||||
<div id="content">
|
||||
{% for label, messages in app.flashes %}
|
||||
{% for message in messages %}
|
||||
<article>
|
||||
{{ message }}
|
||||
</article>
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
{% block content %}{% endblock %}
|
||||
<div id="loading-indicator">
|
||||
<progress />
|
||||
<div class="hidden lg:block">
|
||||
{{ knp_menu_render(knp_menu_get('main')) }}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
<div id="content">
|
||||
{% include '_partials/_flashes.html.twig' %}
|
||||
{% block content %}{% endblock %}
|
||||
</div>
|
||||
<div class="htmx-indicator fixed top-0 left-0 inset-0 z-10 bg-white/90 flex items-center justify-center"
|
||||
id="loading-indicator">
|
||||
{% include '_partials/_spinner.html.twig' with { 'class': 'w-8 h-8'} %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user