templates/home/index.html.twig line 1
{% extends 'home/base.html.twig' %}{% block head %}{% endblock %}{% block title %}Les motards du viaduc !{% endblock %}{% block header %}<header class="container bg-dark bg-opacity-50 rounded text-center mt-5 mb-5 text-white position-relative p-5" id="home_header"><nav class="navbar bg-transparent position-absolute top-0 end-0"><div class="d-flex px-0">{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}{% if is_granted('ROLE_ADMIN') %}<a class="navbar-brand ui large button olive text-white me-2" href="{{ path('admin') }}" tabindex="0"><div class="visible content"><i class="fa-solid fa-user-gear me-2"></i>Admin</div></a><a class="navbar-brand ui large button red text-white me-2 px-3" href="{{ path('app_logout') }}" tabindex="0"><div class="visible content"><i class="fa-solid fa-arrow-right-from-bracket"></i></div></a>{% else %}<a class="navbar-brand ui large button teal mx-0 mx-sm-1" href="{{ path('app_don_new') }}" tabindex="0"><div class="visible content"><i class="fa-solid fa-hand-holding-heart me-2"></i>Faire un don</div></a><a class="navbar-brand ui large button olive text-white mx-0 mx-sm-1" href="{{ path('app_reservation_index') }}" tabindex="0"><div class="visible content"><i class="fa-brands fa-wpforms me-2"></i>Mes réservations</div></a><a class="navbar-brand ui large button red text-white mx-0 mx-sm-2 px-3" href="{{ path('app_logout') }}" tabindex="0"><div class="visible content"><i class="fa-solid fa-arrow-right-from-bracket"></i></div></a>{% endif %}{% else %}<a class="navbar-brand ui large button teal me-2" href="{{ path('app_don_new') }}" tabindex="0"><div class="visible content"><i class="fa-solid fa-hand-holding-heart me-2"></i>Faire un don</div></a><a class="navbar-brand ui large button yellow text-dark me-2" href="{{ path('login') }}" tabindex="0"><div class="visible content">Connexion</div></a>{% endif %}</div></nav><h1 class="display-1">{{ edition.name }}</h1>{% if diff_show %}<h2 class="text-danger"> Fin des inscriptions dans {{ diff_show }}</h2>{% endif %}<div style="text-align: initial;">{{ edition.description|raw }}</div><p class="mt-5 mb-0 text-center text-white display-3">Nos forfaits</p><div class="arrow"></div></header>{% endblock %}{% block main %}<div class="container my-5"><div class="row g-4">{% for forfait in edition.listeForfaits %}{% include 'home/_forfait.html.twig' %}{% endfor %}{% for tombola in edition.listeTombolas %}{% include 'home/_tombola.html.twig' %}{% endfor %}</div></div>{% endblock %}{% block footer %}{% endblock %}{% block javascripts %}{% endblock %}