<!DOCTYPE html> <html> <head> <meta charset="UTF-8" /> <title>{% block title %}VideoPotes{% endblock %}</title> <link rel="stylesheet" href="{{ asset('build/app.css') }}"> {% block stylesheets %}{% endblock %} <link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}" /> </head> <body style="padding-top:5rem;"> <nav class="navbar navbar-expand-md navbar-dark bg-dark fixed-top"> <a class="navbar-brand" href="{{ path('videotheque_liste') }}">Videothèque</a> <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="/" aria-controls="navbarsExampleDefault" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button> <div class="collapse navbar-collapse" id="navbarsExampleDefault"> {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %} <ul class="navbar-nav mr-auto"> <li class="nav-item"> <a class="nav-link" href="{{ path('videothequepersonnelle_maliste') }}">Ma liste de films<span class="sr-only">(current)</span></a> </li> <li class="nav-item"> <a class="nav-link" href="{{ path('videotheque_liste') }}">Liste des films<span class="sr-only">(current)</span></a> </li> <li class="nav-item"> <a class="nav-link" href="{{ path('realisateur_liste') }}">Liste des réalisateurs<span class="sr-only">(current)</span></a> </li> {% if is_granted('ROLE_MODERATEUR') %} <ul class="navbar-nav"> <li class="nav-item dropdown"> <a class="nav-link dropdown-toggle" href="#" id="navbarDropdownAdmin" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> Administration </a> <div class="dropdown-menu" aria-labelledby="navbarDropdown"> {% if is_granted('ROLE_ADMIN') %} <a class="dropdown-item" href="{{ path('admin_index') }}">Utilisateurs</a> <div class="dropdown-divider"></div> {% endif %} <a class="dropdown-item" href="{{ path('genre_liste') }}">Liste des genres</a> {#<div class="dropdown-divider"></div> <a class="dropdown-item" href="{{ path('admin_resettokens') }}">Reset Tokens</a> #} </div> </li> </ul> {% endif %} </ul> <form class="form-inline my-2 my-lg-0" action="{{ path('search_recherche') }}"> <input class="form-control mr-sm-2" name="q" type="text" placeholder="Rechercher" aria-label="Rechercher"> <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Go</button> </form> {% endif %} {% if not is_granted('IS_AUTHENTICATED_REMEMBERED') %} <ul class="navbar-nav"> <li class="nav-item"><a class="nav-link" href="{{ path('login') }}">Se connecter</a></li> </ul> {% else %} <ul class="navbar-nav"> <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"> {{ app.user.nomComplet }} </a> <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown"> <a class="dropdown-item" href="{{ path('user_profil') }}">Profil</a> <div class="dropdown-divider"></div> <a class="dropdown-item" href="{{ path('logout') }}">Se déconnecter</a> </div> </li> </ul> {% endif %} </div> </nav> <div class="container-fluid"> <header> <h1>{% block titre %}{% endblock %}</h1> </header> <main role="main"> <div> {% for message in app.flashes('success') %} <div class="alert alert-success alert-dismissible fade show" role="alert"> <strong>Succès</strong> {{ message }} <button type="button" class="close" data-dismiss="alert" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> {% endfor %} {% for message in app.flashes('warning') %} <div class="alert alert-warning alert-dismissible fade show" role="alert"> <strong>Attention</strong> {{ message }} <button type="button" class="close" data-dismiss="alert" aria-label="Close"> <span aria-hidden="true">×</span> </button> </div> {% endfor %} {% block body %}{% endblock %} </div> </main> <footer class="footer"> <div class="container text-center"> <span class="text-muted small">Cette application est développée en Symfony 3.4 - Code source disponible sur <a target="_blank" href="https://gogs.fdlibre.eu/sangfroid/films">Gogs</a><br>Licence <a target="_blank" href="http://www.wtfpl.net">WTFLP</a></span> </div> {% block footer %} {% endblock %} </footer> </div> <script src="{{ asset('build/app.js') }}"></script> {% block javascripts %}{% endblock %} </body> </html>