{% extends 'base.html.twig' %}
{% block title %}- Tous les festivals et tournois{% endblock %}
{% block headersection %}
<div class="fixed-top">
{{ include('flashmessages/flashmessages.html.twig') }}
</div>
<section class="section section-xl bg-primary overlay-dark text-white rounded covernorepeat" data-background="{{ asset('assets/img/cards-3662554_1920.jpg') }}">
<div class="container">
<div class="row justify-content-center">
<div class="col-12">
<nav aria-label="breadcrumb">
<ol class="breadcrumb breadcrumb-transparent">
<li class="breadcrumb-item"><a href="/">Accueil</a></li>
<li class="breadcrumb-item active">Tout</li>
</ol>
</nav>
<!-- Heading -->
<h1 class="display-2">
<i class="far fa-list-alt mr-2"></i>Tous les tournois et festivals
</h1>
<!-- Text -->
<p class="lead text-muted mt-4">
Liste de tous les tournois et festivals inscrits sur le site.
</p>
</div>
</div>
</div>
</section>
{%endblock%}
{%block body%}
<main>
<div class="section pt-5 pt-lg-6" style="min-height: 50vh;">
<div id="spaces-container" class="container">
<div class="row justify-content-around">
{% for bffestival in bffestivals %}
<div class="col-4 border">
{{bffestival.name}} :
{%for bfedition in bffestival.editions%}
{%if bfedition.isactive==true%}
{%if is_granted('option_uniqueurl_festival', bffestival) and bffestival.route!=null%}
<a href="{{ path('home_route', {'routename':bffestival.route.route}, relative = false) }}">{{bfedition.name}}</a> ;
{%elseif is_granted('option_uniqueurl_edition', bfedition) and bfedition.route!=null%}
<a href="{{ path('home_route', {'routename':bfedition.route.route}, relative = false) }}">{{bfedition.name}}</a> ;
{%else%}
<a href="{{ path('edition_view', {'id':bfedition.id}, relative = false) }}">{{bfedition.name}}</a> ;
{%endif%}
{%endif%}
{%endfor%}
</div>
{%endfor%}
</div>
</div>
</div>
</main>
{%endblock%}