templates/base.html.twig line 1

Open in your IDE?
  1. {% if app.user is defined and app.user.currentSeason is defined and app.user.currentSeason is not null %}
  2.     {% set troupe = app.user.currentSeason.brand %}
  3. {% else %}
  4.     {% set troupe = 'defaut' %}
  5. {% endif %}
  6. {% set title = 'troupe' %}
  7. <!DOCTYPE html>
  8. <html lang="fr">
  9. <head>
  10.     <meta charset="UTF-8">
  11.     <meta name="viewport" content="width=device-width, user-scalable=no">
  12.     <title>{% block title %}{{ title }}{% endblock %} | Asso planner</title>
  13.     {% include("Components/favicon.html.twig") %}
  14.     {% block stylesheets %}
  15.         <link rel="stylesheet" href="{{ asset('build/css/app.css') }}" type="text/css"/>
  16.     {% endblock %}
  17.     {% block javascripts %}
  18.         <script src="{{ asset('build/js/app.js') }}"></script>
  19.         {% block jsspecifique %}{% endblock %}
  20.     {% endblock %}
  21. </head>
  22. <body class="{% block body_class %}page-view menu--white{% endblock %}{% if app.user %} logged{% endif %}">
  23. <header class="{% if app.user %}logged{% endif %}">
  24.     {% block header %}
  25.         {% include 'Components/header.html.twig' with global_layout.header %}
  26.     {# {{ render(controller('App\\Controller\\HomePageController::header')) }} #}
  27.     {% endblock %}
  28.     {% block page_title %}{% endblock %}
  29. </header>
  30. <div class="container-fluid" id="main-content">
  31.     {#FIXME: app.flashes insted of app.session.flashbag #}
  32.     {% if app.session.flashbag | length > 0 %}
  33.         <div class="alert-wrapper">
  34.             {% for label, messages in app.session.flashbag.all %}
  35.                 {% if messages | length > 0 %}
  36.                     <div class="grid-container">
  37.                         <div data-alert class="alert-box {{ label }}">
  38.                             {% for message in messages %}
  39.                                 <p>
  40.                                     {% if label == 'error' or label == 'warning' %}<i class="icon icon-warning"></i>{% endif %}
  41.                                     {% if label == 'success' %}<i class="icon icon-check"></i>{% endif %}
  42.                                     {{ message| trans }}
  43.                                 </p>
  44.                             {% endfor %}
  45.                         </div>
  46.                     </div>
  47.                 {% endif %}
  48.             {% endfor %}
  49.         </div>
  50.     {% endif %}
  51.     {% block body %}{% endblock %}
  52. </div>
  53. {% block footer %}
  54.     {{ include("Components/footer.html.twig") }}
  55. {% endblock %}
  56. {% include 'Components/cookie-bar.html.twig' %}
  57. {% block jsspecifiquefooter %}{% endblock %}
  58. </body>
  59. </html>