templates/back.html.twig line 14

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <title>GLAPP :: {% block title %}{% endblock %}</title>
  6.     <link href="{{ asset('css/all.min.css') }}" rel="stylesheet">
  7.     <link href="{{ asset('css/bootstrap.min.css') }}" rel="stylesheet">
  8.     <link href="{{ asset('css/back.css') }}" rel="stylesheet">
  9.     <link href="{{ asset('css/select2.min.css') }}" rel="stylesheet">
  10.     <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css"/>
  11.     {% block stylesheets %}{% endblock %}
  12. </head>
  13. <body>
  14. {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  15.     <nav class="navbar navbar-expand-lg navbar-dark bg-dark">
  16.         <a class="navbar-brand" href="{{ path('accueil_back') }}">{{ getParam('param_title') }}</a>
  17.         <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
  18.                 aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
  19.             <span class="navbar-toggler-icon"></span>
  20.         </button>
  21.         <div class="collapse navbar-collapse" id="navbarSupportedContent">
  22.             <ul class="navbar-nav mr-auto">
  23.                 {% if is_granted('ROLE_SUPER_ADMIN') %}
  24.                 <li class="nav-item">
  25.                     <a class="nav-link" href="{{ path('user_index') }}">Benutzer</a>
  26.                 </li>
  27.                 {% endif %}
  28.                 <li class="nav-item">
  29.                     <a class="nav-link" href="{{ path('client_index') }}">Kunden</a>
  30.                 </li>
  31.                 {% if is_granted('ROLE_SUPER_ADMIN') %}
  32.                 <li class="nav-item">
  33.                     <a class="nav-link" href="{{ path('product_index') }}">Produkte</a>
  34.                 </li>
  35.                     {% endif %}
  36.                 <li class="nav-item">
  37.                     <a class="nav-link" href="{{ path('piece_index') }}">Verkauf</a>
  38.                 </li>
  39.                 <li class="nav-item">
  40.                     <a class="nav-link" href="{{ path('payment_index') }}">Zahlungen</a>
  41.                 </li>
  42.                 {% if getParam('param_title') == 'IRON-APP' %}
  43.                 {% if is_granted('ROLE_SUPER_ADMIN') %}
  44.                 <li class="nav-item">
  45.                     <a class="nav-link" href="{{ path('exercice_category_index') }}">Catégories Exercices</a>
  46.                 </li>
  47.                 <li class="nav-item">
  48.                     <a class="nav-link" href="{{ path('exercice_index') }}">Exercices</a>
  49.                 </li>
  50.                 {% endif %}
  51.                 <li class="nav-item">
  52.                     <a class="nav-link" href="{{ path('programm_index') }}">Programmes</a>
  53.                 </li>
  54.                 {% endif %}
  55.                 {% if is_granted('ROLE_SUPER_ADMIN') %}
  56.                 <li class="nav-item">
  57.                     <a class="nav-link" href="{{ path('ligne_vente_index') }}">Verkauf/Produkte</a>
  58.                 </li>
  59.                     {% if getParam('param_title') == 'IRON-APP' %}
  60.                     <li class="nav-item dropdown">
  61.                         <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button"
  62.                            data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
  63.                             Diète
  64.                         </a>
  65.                         <div class="dropdown-menu" aria-labelledby="navbarDropdown">
  66.                             <a class="dropdown-item" href="{{ path('programme_index') }}">Programme</a>
  67.                             <div class="dropdown-divider"></div>
  68.                             <a class="dropdown-item" href="{{ path('category_aliment_index') }}">Catégorie aliment</a>
  69.                             <a class="dropdown-item" href="{{ path('aliment_index') }}">Aliment</a>
  70.                         </div>
  71.                     </li>
  72.                     {% endif %}
  73.                 {% elseif getParam('param_title') == 'IRON-APP' %}
  74.                     <li class="nav-item">
  75.                         <a class="nav-link" href="{{ path('programme_index') }}">Programme diète</a>
  76.                     </li>
  77.                 {% endif %}
  78.             </ul>
  79.             <ul class="navbar-nav my-2 my-lg-0">
  80.                 <li class="nav-item">
  81.                     <a class="nav-link" href="{{ path('user_profile') }}"><span class="fa fa-user"></span> {{ app.user.nomComplet }}</a>
  82.                 </li>
  83.                 {% if is_granted('ROLE_SUPER_ADMIN') %}
  84.                     <li class="nav-item">
  85.                         <a class="nav-link" href="{{ path('edit_config') }}"><span class="fa fa-cogs"></span> Configuration</a>
  86.                     </li>
  87.                 {% endif %}
  88.                 <li class="nav-item">
  89.                     <a class="nav-link" href="{{ path('app_logout') }}"><span class="fa fa-sign-out-alt"></span>
  90.                         Déconnection</a>
  91.                 </li>
  92.             </ul>
  93.         </div>
  94.     </nav>
  95. {% endif %}
  96. <div class="container-fluid p_t_20 m_b_20">
  97.     {% for type in ['danger', 'info', 'success'] %}
  98.         {% for flash_message in app.session.flashBag.get(type) %}
  99.             <div class="alert alert-{{ type }} m_t_20" role="alert">
  100.                 {{ flash_message }}
  101.             </div>
  102.         {% endfor %}
  103.     {% endfor %}
  104.     {% block body %}{% endblock %}
  105. </div>
  106. <script src="{{ asset('js/jquery-3.4.1.min.js') }}"></script>
  107. <script src="{{ asset('js/bootstrap.min.js') }}"></script>
  108. <script src="{{ asset('js/select2.min.js') }}"></script>
  109. <script src="{{ asset('js/back.js') }}"></script>
  110. {% block javascripts %}{% endblock %}
  111. </body>
  112. </html>