{% set placeid2 = app.session.get('place') %} {% block body %} {% set cartitems = app.session.get('cartitems') %}{% if cartitems is not defined or cartitems == "" %} {% set cartitems = 0 %}{% endif %}{% set cartitems = '(' ~ cartitems ~ ')' %}{% if app.user %} <div class="navbar navbar-expand-lg bg-dark navbar-dark"> <div class="container-fluid"> {% set placeid2 = app.session.get('place') %} {% if placeid2 is defined and placeid2 != "" %} <a href="{{ path('homepage2',{placeid: placeid2}) }}"> {% if company == 'KVO' %} <!-- <h2>Wellness und Spa</h2> --> <img src="{{ asset('./images/kvo_logo3.png') }}" width="80px" height="80px" style="margin-top: -20px" /> {% else %} {% if placeid2 == '2' %} <h2 class="navItem">Kursprogramm Friedrichsbad</h2> {% elseif placeid2 == '3' %} <h2 class="navItem">Kursprogramm Nienhausen</h2> {% elseif placeid2 == '4' %} <h2 class="navItem">Kursprogramm Nord-Ost-Bad</h2> {% elseif placeid2 == '5' %} <h2 class="navItem">Kursprogramm Jugendhalle</h2> {% elseif placeid2 == '6' %} <h2 class="navItem">Kursprogramm Yogazentrum</h2> {% else %} <h2 class="navItem">Kursprogramm</h2> {% endif %} {% endif %} <span></span></a> {% else %} <a href="{{ path('homepage') }}"> {% if company == 'KVO' %} <!-- <h2>Wellness und Spa</h2> --> <img src="{{ asset('./images/kvo_logo3.png') }}" width="80px" height="80px" style="margin-top: -20px" /> {% else %} {% if placeid2 == '2' %} <h2 class="navItem">Kursprogramm Friedrichsbad</h2> {% elseif placeid2 == '3' %} <h2 class="navItem">Kursprogramm Nienhausen</h2> {% elseif placeid2 == '4' %} <h2 class="navItem">Kursprogramm Nord-Ost-Bad</h2> {% elseif placeid2 == '5' %} <h2 class="navItem">Kursprogramm Jugendhalle</h2> {% elseif placeid2 == '6' %} <h2 class="navItem">Kursprogramm Yogazentrum</h2> {% else %} <h2 class="navItem">Kursprogramm</h2> {% endif %} {% endif %} </a> {% endif %} <button type="button" class="navbar-toggler" data-toggle="collapse" data-target="#navbarCollapse"> <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse justify-content-between" id="navbarCollapse" > <div class="navbar-nav ml-auto"> {% if placeid2 is defined and placeid2 != "" %} <a href="{{ path('homepage2',{placeid: placeid2}) }}" class="navItem" > <svg xmlns="http://www.w3.org/2000/svg" width="{{ defaultSVGWidth }}" height="{{ defaultSVGHeight }}" fill="currentColor" class="navItem bi bi-house" viewBox="0 0 16 16"> <path fill-rule="evenodd" d="M2 13.5V7h1v6.5a.5.5 0 0 0 .5.5h9a.5.5 0 0 0 .5-.5V7h1v6.5a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 2 13.5zm11-11V6l-2-2V2.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5z"/> <path fill-rule="evenodd" d="M7.293 1.5a1 1 0 0 1 1.414 0l6.647 6.646a.5.5 0 0 1-.708.708L8 2.207 1.354 8.854a.5.5 0 1 1-.708-.708L7.293 1.5z"/> </svg> Home</a> {% else %} <a href="{{ path('homepage') }}" class="navItem" > <svg xmlns="http://www.w3.org/2000/svg" width="{{ defaultSVGWidth }}" height="{{ defaultSVGHeight }}" fill="currentColor" class="navItem bi bi-house" viewBox="0 0 16 16"> <path fill-rule="evenodd" d="M2 13.5V7h1v6.5a.5.5 0 0 0 .5.5h9a.5.5 0 0 0 .5-.5V7h1v6.5a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 2 13.5zm11-11V6l-2-2V2.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5z"/> <path fill-rule="evenodd" d="M7.293 1.5a1 1 0 0 1 1.414 0l6.647 6.646a.5.5 0 0 1-.708.708L8 2.207 1.354 8.854a.5.5 0 1 1-.708-.708L7.293 1.5z"/> </svg> Home</a> {% endif %} {% if company == 'KVO' %} <a href="{{ path('zusatzinfo') }}" class="navItem" ><svg xmlns="http://www.w3.org/2000/svg" width="{{ defaultSVGWidth }}" height="{{ defaultSVGHeight }}" fill="currentColor" class="navItem bi bi-info-circle" viewBox="0 0 16 16"> <path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"/> <path d="m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533L8.93 6.588zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"/> </svg> Info</a> {% endif %} {% if app.user.urole >= 2 %} <a href="{{ path('backendDashboard') }}" class="navItem" > <svg xmlns="http://www.w3.org/2000/svg" width="{{ defaultSVGWidth }}" height="{{ defaultSVGHeight }}" fill="currentColor" class="navItem bi bi-archive" viewBox="0 0 16 16"> <path d="M0 2a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1v7.5a2.5 2.5 0 0 1-2.5 2.5h-9A2.5 2.5 0 0 1 1 12.5V5a1 1 0 0 1-1-1V2zm2 3v7.5A1.5 1.5 0 0 0 3.5 14h9a1.5 1.5 0 0 0 1.5-1.5V5H2zm13-3H1v2h14V2zM5 7.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5z"/> </svg> Backend</a> {% endif %} <a href="{{ path('cart') }}" class="navItem" > <svg xmlns="http://www.w3.org/2000/svg" width="{{ defaultSVGWidth }}" height="{{ defaultSVGHeight }}" fill="currentColor" class="navItem bi bi-cart4" viewBox="0 0 16 16"> <path d="M0 2.5A.5.5 0 0 1 .5 2H2a.5.5 0 0 1 .485.379L2.89 4H14.5a.5.5 0 0 1 .485.621l-1.5 6A.5.5 0 0 1 13 11H4a.5.5 0 0 1-.485-.379L1.61 3H.5a.5.5 0 0 1-.5-.5zM3.14 5l.5 2H5V5H3.14zM6 5v2h2V5H6zm3 0v2h2V5H9zm3 0v2h1.36l.5-2H12zm1.11 3H12v2h.61l.5-2zM11 8H9v2h2V8zM8 8H6v2h2V8zM5 8H3.89l.5 2H5V8zm0 5a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm-2 1a2 2 0 1 1 4 0 2 2 0 0 1-4 0zm9-1a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm-2 1a2 2 0 1 1 4 0 2 2 0 0 1-4 0z"/> </svg> Warenkorb {{ cartitems }} </a> <a href="{{ path('userSettings') }}" class="navItem" > <svg xmlns="http://www.w3.org/2000/svg" width="{{ defaultSVGWidth }}" height="{{ defaultSVGHeight }}" fill="currentColor" class="navItem bi bi-person" viewBox="0 0 16 16"> <path d="M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6zm2-3a2 2 0 1 1-4 0 2 2 0 0 1 4 0zm4 8c0 1-1 1-1 1H3s-1 0-1-1 1-4 6-4 6 3 6 4zm-1-.004c-.001-.246-.154-.986-.832-1.664C11.516 10.68 10.289 10 8 10c-2.29 0-3.516.68-4.168 1.332-.678.678-.83 1.418-.832 1.664h10z"/> </svg> {{ app.user.username }}</a> <a href="{{ path('userHistory',{start: 0, offset: 25}) }}" class="navItem" > <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-journal-bookmark" viewBox="0 0 16 16"> <path fill-rule="evenodd" d="M6 8V1h1v6.117L8.743 6.07a.5.5 0 0 1 .514 0L11 7.117V1h1v7a.5.5 0 0 1-.757.429L9 7.083 6.757 8.43A.5.5 0 0 1 6 8z"/> <path d="M3 0h10a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2v-1h1v1a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v1H1V2a2 2 0 0 1 2-2z"/> <path d="M1 5v-.5a.5.5 0 0 1 1 0V5h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1H1zm0 3v-.5a.5.5 0 0 1 1 0V8h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1H1zm0 3v-.5a.5.5 0 0 1 1 0v.5h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1H1z"/> </svg> Historie</a> <!--<a class="navItem" href="{{ path('logout2') }}">--> <a class="navItem" href="javascript:logout();"> <svg xmlns="http://www.w3.org/2000/svg" width="{{ defaultSVGWidth }}" height="{{ defaultSVGHeight }}" fill="currentColor" class="navItem bi bi-door-closed" viewBox="0 0 16 16" > <path d="M3 2a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v13h1.5a.5.5 0 0 1 0 1h-13a.5.5 0 0 1 0-1H3V2zm1 13h8V2H4v13z"/> <path d="M9 9a1 1 0 1 0 2 0 1 1 0 0 0-2 0z"/> </svg> Logout</a> </div> </div> </div> </div> {% else %} <div class="navbar navbar-expand-lg bg-dark navbar-dark"> <div class="container-fluid"> {% set placeid2 = app.session.get('place') %} {% if placeid2 is defined and placeid2 != "" %} <a href="{{ path('homepage2',{placeid: placeid2}) }}"> {% if company == 'KVO' %} <!-- <h2>Wellness und Spa</h2> --> <img src="{{ asset('./images/kvo_logo3.png') }}" width="80px" height="80px" style="margin-top: -20px" /> {% else %} {% if placeid2 == '2' %} <h2>Kursprogramm Friedrichsbad</h2> {% elseif placeid2 == '3' %} <h2>Kursprogramm Nienhausen</h2> {% elseif placeid2 == '4' %} <h2>Kursprogramm Nord-Ost-Bad</h2> {% elseif placeid2 == '5' %} <h2>Kursprogramm Jugendhalle</h2> {% elseif placeid2 == '6' %} <h2>Kursprogramm Yogazentrum</h2> {% else %} <h2>Kursprogramm</h2> {% endif %} {% endif %} <span></span></a> {% else %} <a href="{{ path('homepage') }}"> {% if company == 'KVO' %} <!-- <h2>Wellness und Spa</h2> --> <img src="{{ asset('./images/kvo_logo3.png') }}" width="80px" height="80px" style="margin-top: -20px" /> {% else %} {% if placeid2 == '2' %} <h2>Kursprogramm Friedrichsbad</h2> {% elseif placeid2 == '3' %} <h2>Kursprogramm Nienhausen</h2> {% elseif placeid2 == '4' %} <h2>Kursprogramm Nord-Ost-Bad</h2> {% elseif placeid2 == '5' %} <h2>Kursprogramm Jugendhalle</h2> {% elseif placeid2 == '6' %} <h2>Kursprogramm Yogazentrum</h2> {% else %} <h2>Kursprogramm</h2> {% endif %} {% endif %} </a> {% endif %} <button type="button" class="navbar-toggler" data-toggle="collapse" data-target="#navbarCollapse"> <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse justify-content-between" id="navbarCollapse"> <div class="navbar-nav ml-auto"> {% if placeid2 is defined and placeid2 != "" %} <a href="{{ path('homepage2',{placeid: placeid2}) }}" class="navItem" > <svg xmlns="http://www.w3.org/2000/svg" width="{{ defaultSVGWidth }}" height="{{ defaultSVGHeight }}" fill="currentColor" class="navItem bi bi-house" viewBox="0 0 16 16"> <path fill-rule="evenodd" d="M2 13.5V7h1v6.5a.5.5 0 0 0 .5.5h9a.5.5 0 0 0 .5-.5V7h1v6.5a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 2 13.5zm11-11V6l-2-2V2.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5z"/> <path fill-rule="evenodd" d="M7.293 1.5a1 1 0 0 1 1.414 0l6.647 6.646a.5.5 0 0 1-.708.708L8 2.207 1.354 8.854a.5.5 0 1 1-.708-.708L7.293 1.5z"/> </svg> Home</a> {% else %} <a href="{{ path('homepage') }}" class="navItem" > <svg xmlns="http://www.w3.org/2000/svg" width="{{ defaultSVGWidth }}" height="{{ defaultSVGHeight }}" fill="currentColor" class="navItem bi bi-house" viewBox="0 0 16 16"> <path fill-rule="evenodd" d="M2 13.5V7h1v6.5a.5.5 0 0 0 .5.5h9a.5.5 0 0 0 .5-.5V7h1v6.5a1.5 1.5 0 0 1-1.5 1.5h-9A1.5 1.5 0 0 1 2 13.5zm11-11V6l-2-2V2.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5z"/> <path fill-rule="evenodd" d="M7.293 1.5a1 1 0 0 1 1.414 0l6.647 6.646a.5.5 0 0 1-.708.708L8 2.207 1.354 8.854a.5.5 0 1 1-.708-.708L7.293 1.5z"/> </svg> Home</a> {% endif %} {% if company == 'KVO' %} <a href="{{ path('zusatzinfo') }}" class="navItem" ><svg xmlns="http://www.w3.org/2000/svg" width="{{ defaultSVGWidth }}" height="{{ defaultSVGHeight }}" fill="currentColor" class="navItem bi bi-info-circle" viewBox="0 0 16 16"> <path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"/> <path d="m8.93 6.588-2.29.287-.082.38.45.083c.294.07.352.176.288.469l-.738 3.468c-.194.897.105 1.319.808 1.319.545 0 1.178-.252 1.465-.598l.088-.416c-.2.176-.492.246-.686.246-.275 0-.375-.193-.304-.533L8.93 6.588zM9 4.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0z"/> </svg>Info</a> {% endif %} <a href="{{ path('cart') }}" class="navItem" > <svg xmlns="http://www.w3.org/2000/svg" width="{{ defaultSVGWidth }}" height="{{ defaultSVGHeight }}" fill="currentColor" class="navItem bi bi-cart4" viewBox="0 0 16 16"> <path d="M0 2.5A.5.5 0 0 1 .5 2H2a.5.5 0 0 1 .485.379L2.89 4H14.5a.5.5 0 0 1 .485.621l-1.5 6A.5.5 0 0 1 13 11H4a.5.5 0 0 1-.485-.379L1.61 3H.5a.5.5 0 0 1-.5-.5zM3.14 5l.5 2H5V5H3.14zM6 5v2h2V5H6zm3 0v2h2V5H9zm3 0v2h1.36l.5-2H12zm1.11 3H12v2h.61l.5-2zM11 8H9v2h2V8zM8 8H6v2h2V8zM5 8H3.89l.5 2H5V8zm0 5a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm-2 1a2 2 0 1 1 4 0 2 2 0 0 1-4 0zm9-1a1 1 0 1 0 0 2 1 1 0 0 0 0-2zm-2 1a2 2 0 1 1 4 0 2 2 0 0 1-4 0z"/> </svg> Warenkorb {{ cartitems }} </a> <a href="{{ path('login') }}" class="navItem" > <i class="navItem bi bi-person"></i> Login</a> </div> </div> </div> </div> {% endif %}<script>function logout(){ url2 = "{{ url }}logout2"; $.ajax({ url: url2, data:{ id: '{% if app.user %}{{ app.user.id }}{% endif %}' }, method: 'POST' }).done(function(data) { location.href = "{{url}}logout"; });}</script>{% endblock %}