templates/base.html.twig line 1

Open in your IDE?
  1. <!DOCTYPE html>
  2. <html>
  3.     <head>
  4.         <meta charset="UTF-8">
  5.         <title>{% block title %}Demande de recrutement sur contrat de recherche!{% endblock %}</title>
  6.         {#<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text></svg>">#}
  7.         <link rel="preconnect" href="https://fonts.googleapis.com">
  8.         <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  9.         <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Work+Sans:wght@400;600&display=swap" rel="stylesheet"> 
  10.         <link rel="Shortcut Icon" type="image/x-icon" href="{{ asset('images/favicon.png') }}">
  11.         <link rel="icon" sizes="16x16" href="{{ asset('images/favicon.ico') }}" type="image/png">
  12.         {# Run `composer require symfony/webpack-encore-bundle` to start using Symfony UX #}
  13.         {% block stylesheets %}
  14.             {{ encore_entry_link_tags('app') }}
  15.         {% endblock %}
  16.         {% block javascripts %}
  17.             {{ encore_entry_script_tags('app') }}
  18.             <script
  19.                 src="https://code.jquery.com/jquery-3.4.1.js"
  20.                 integrity="sha256-WpOohJOqMqqyKL9FccASB9O0KwACQJpFTUBLTYOVvVU="
  21.                 crossorigin="anonymous">         
  22.             </script>
  23.             <script src="{{ asset('js/scripts.js') }}"></script>
  24.         {% endblock %}
  25.         <link href="{{ asset('css/style.css') }}" rel="stylesheet"/>
  26.         <link href="{{ asset('css/rwd.css') }}" rel="stylesheet"/>
  27.     </head>
  28.     <body>
  29.         <div class="global">
  30.             <header>
  31.                 <div class="headFlex">
  32.                     <div class="logoHead">
  33.                         <img class="logo" src="{{ asset('images/logo_universite.png') }}" alt="Université Sorbonne Paris Nord" />
  34.                     </div>
  35.                     {#<div class="siteName">Université Sorbonne Paris Nord</div>#}
  36.                     <div class="boxUser">
  37.                     {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  38.                         <a href="{{ path('mes_informations') }}" class="txtUser">{{ app.user.prenom }} <span class="upper">{{ app.user.nom }}</span></a>
  39.                         {% if is_granted('ROLE_ADMIN') %}
  40.                             <a href="/admin" class="logout">Administration</a>
  41.                         {% endif %}
  42.                         <a href="{{ path('app_logout') }}" class="logout">Déconnexion</a>
  43.                     {% else %}
  44.                         {% if app.request.get('_route') != 'app_login' %}
  45.                             <a href="{{ path('app_login') }}" class="txtUser">Connexion</a>
  46.                         {% endif %}
  47.                     {% endif %}
  48.                     </div>
  49.                 </div>
  50.                 {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  51.                     <div class="bt_nav">Menu</div>
  52.                     <nav class="nav">
  53.                     {% if is_granted('ROLE_ADMIN') %}
  54.                             <a href="{{ path('mes_informations') }}" {% if app.request.get('_route') == 'mes_informations' %}class="actif"{% endif %}>Mon compte</a>
  55.                             <a href="{{ path('app_demande_list') }}" {% if app.request.get('_route') == 'app_demande_list' %}class="actif"{% endif %}>Offres &amp; candidats</a>
  56.                             <a href="{{ path('app_offres_index') }}" {% if app.request.get('_route') == 'app_offres_index' %}class="actif"{% endif %}>Les offres en ligne</a>
  57.                             <a href="{{ path('mes_candidatures') }}" {% if app.request.get('_route') == 'mes_candidatures' %}class="actif"{% endif %}>Mes candidatures</a>
  58.                     {% else %}
  59.                         <a href="{{ path('mes_informations') }}" {% if app.request.get('_route') == 'mes_informations' %}class="actif"{% endif %}>Mon compte</a>
  60.                         {% if is_granted('ROLE_DEPOSANT') %}
  61.                                 <a href="{{ path('app_demande_list') }}" {% if app.request.get('_route') == 'app_demande_list' %}class="actif"{% endif %}>Mes demandes &amp; candidats</a>
  62.                         {% endif %}
  63.                         {% if is_granted('ROLE_CANDIDAT') %}
  64.                                 <a href="{{ path('app_offres_index') }}" {% if app.request.get('_route') == 'app_offres_index' %}class="actif"{% endif %}>Les offres en ligne</a>
  65.                                 <a href="{{ path('mes_candidatures') }}" {% if app.request.get('_route') == 'mes_candidatures' %}class="actif"{% endif %}>Mes candidatures</a>
  66.                         {% endif %}
  67.                     {% endif %}
  68.                     {% if is_granted('ROLE_JURY') %}
  69.                         <a href="{{ path('app_liste_selection') }}" {% if app.request.get('_route') == 'app_liste_selection' %}class="actif"{% endif %}>Jury de sélection</a>
  70.                     {% endif %}
  71.                     </nav>
  72.                 {% endif %}
  73.             </header>
  74.             
  75.             {% if is_granted("ROLE_EN_ATTENTE") %}   
  76.                 <div class="alert alert-error">
  77.                     Votre adresse email est en attente de validation. 
  78.                     <a href="{{ path('app_validate_send_email_validation') }}">Cliquez ici pour envoyer à nouveau un email de validation.</a>
  79.                 </div>
  80.             {% endif %}    
  81.             {% for message in app.flashes('message') %}
  82.                 <div class="message msg_base">
  83.                     {{ message|raw }}
  84.                 </div>
  85.             {% endfor %}
  86.             {% for message in app.flashes('error') %}
  87.                 <div class="message_error msg_base">
  88.                     {{ message|raw }}
  89.                 </div>
  90.             {% endfor %}
  91.             <div class="site main">
  92.                 {% block body %}{% endblock %}
  93.             </div>
  94.         </div>
  95.     </body>
  96. </html>