123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- <!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;padding-bottom:4rem;">
- <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
- {% if app.request.attributes.get('_route') == 'videothequepersonnelle_maliste' %}active{% endif %}">
- <a class="nav-link" href="{{ path('videothequepersonnelle_maliste') }}">Ma liste de films<span class="sr-only">(current)</span></a>
- </li>
- <li class="nav-item
- {% if app.request.attributes.get('_route') == 'videotheque_liste' %}active{% endif %}">
- <a class="nav-link" href="{{ path('videotheque_liste') }}">Liste des films<span class="sr-only">(current)</span></a>
- </li>
- <li class="nav-item
- {% if app.request.attributes.get('_route') == 'realisateur_liste' %}active{% endif %}">
- <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>
- <div class="row">
- <div class="col-8">
- <h1>{% block titre %}{% endblock %}</h1>
- </div>
- <div class="col-4">
- <div class="text-right">
- <a data-toggle="collapse" role="button" href="#collapseAide" aria-expanded="false" aria-controls="collapseAide">Aide <i class="fa fa-chevron-down"></i></a>
- </div>
- <div class="card collapse" id="collapseAide">
- <div class="card-body">
- <p><i class="fa fa-star text-primary"></i> : Films que l'on souhaite voir. On les retrouve dans "Liste de mes films"</p>
- <p><i class="badge badge-secondary">Pas vu</i><i class="badge badge-success">Vu</i> : Film qu'on a vu</p>
- <p><i class="badge badge-danger">Pas vu</i><i class="badge badge-secondary">Vu</i> : Film qu'on n'a pas vu</p>
- </div>
- </div>
- </div>
- </div>
- </header>
- <main role="main">
- {% block body %}{% endblock %}
- </main>
- <footer class="footer">
- <div class="text-center fixed-bottom bg-white">
- <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>
- {% for type, messages in app.session.flashBag.all %}
- {% for message in messages %}
- {% if type == 'error' %}{% set type = 'danger' %} {% endif %}
- <div data-toggle="notify" data-message="{{ message }}" data-type="{{ type }}"></div>
- {% endfor %}
- {% endfor %}
- <script src="{{ asset('build/app.js') }}"></script>
- {% block javascripts %}{% endblock %}
- </body>
- </html>
|