<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>GLAPP :: {% block title %}{% endblock %}</title>
<link href="{{ asset('css/all.min.css') }}" rel="stylesheet">
<link href="{{ asset('css/bootstrap.min.css') }}" rel="stylesheet">
<link href="{{ asset('css/back.css') }}" rel="stylesheet">
<link href="{{ asset('css/select2.min.css') }}" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"/>
{% block stylesheets %}{% endblock %}
</head>
<body>
{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<a class="navbar-brand" href="{{ path('accueil_back') }}">{{ getParam('param_title') }}</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
{% if is_granted('ROLE_SUPER_ADMIN') %}
<li class="nav-item">
<a class="nav-link" href="{{ path('user_index') }}">Benutzer</a>
</li>
{% endif %}
<li class="nav-item">
<a class="nav-link" href="{{ path('client_index') }}">Kunden</a>
</li>
{% if is_granted('ROLE_SUPER_ADMIN') %}
<li class="nav-item">
<a class="nav-link" href="{{ path('product_index') }}">Produkte</a>
</li>
{% endif %}
<li class="nav-item">
<a class="nav-link" href="{{ path('piece_index') }}">Verkauf</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{ path('payment_index') }}">Zahlungen</a>
</li>
{% if getParam('param_title') == 'IRON-APP' %}
{% if is_granted('ROLE_SUPER_ADMIN') %}
<li class="nav-item">
<a class="nav-link" href="{{ path('exercice_category_index') }}">Catégories Exercices</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{{ path('exercice_index') }}">Exercices</a>
</li>
{% endif %}
<li class="nav-item">
<a class="nav-link" href="{{ path('programm_index') }}">Programmes</a>
</li>
{% endif %}
{% if is_granted('ROLE_SUPER_ADMIN') %}
<li class="nav-item">
<a class="nav-link" href="{{ path('ligne_vente_index') }}">Verkauf/Produkte</a>
</li>
{% if getParam('param_title') == 'IRON-APP' %}
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Diète
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="{{ path('programme_index') }}">Programme</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="{{ path('category_aliment_index') }}">Catégorie aliment</a>
<a class="dropdown-item" href="{{ path('aliment_index') }}">Aliment</a>
</div>
</li>
{% endif %}
{% elseif getParam('param_title') == 'IRON-APP' %}
<li class="nav-item">
<a class="nav-link" href="{{ path('programme_index') }}">Programme diète</a>
</li>
{% endif %}
</ul>
<ul class="navbar-nav my-2 my-lg-0">
<li class="nav-item">
<a class="nav-link" href="{{ path('user_profile') }}"><span class="fa fa-user"></span> {{ app.user.nomComplet }}</a>
</li>
{% if is_granted('ROLE_SUPER_ADMIN') %}
<li class="nav-item">
<a class="nav-link" href="{{ path('edit_config') }}"><span class="fa fa-cogs"></span> Configuration</a>
</li>
{% endif %}
<li class="nav-item">
<a class="nav-link" href="{{ path('app_logout') }}"><span class="fa fa-sign-out-alt"></span>
Déconnection</a>
</li>
</ul>
</div>
</nav>
{% endif %}
<div class="container-fluid p_t_20 m_b_20">
{% for type in ['danger', 'info', 'success'] %}
{% for flash_message in app.session.flashBag.get(type) %}
<div class="alert alert-{{ type }} m_t_20" role="alert">
{{ flash_message }}
</div>
{% endfor %}
{% endfor %}
{% block body %}{% endblock %}
</div>
<script src="{{ asset('js/jquery-3.4.1.min.js') }}"></script>
<script src="{{ asset('js/bootstrap.min.js') }}"></script>
<script src="{{ asset('js/select2.min.js') }}"></script>
<script src="{{ asset('js/back.js') }}"></script>
{% block javascripts %}{% endblock %}
</body>
</html>