{% extends 'base.html.twig' %}
{% block title %}- Tous les challenges{% 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 challenges
</h1>
<!-- Text -->
<p class="lead text-muted mt-4">
Liste de tous les challenges 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 bfchallenge in pagination %}
<div class="col-12 mb-1">
<div class="h4">
{{bfchallenge.name}}
</div>
<div class="row mt-1">
{%for bfchallengeedition in bfchallenge.editions%}
{%if bfchallengeedition.isactive==true%}
{{ render(controller('App\\Controller\\BFChallengeEditionController::ShowSmallView', {id:bfchallengeedition.id})) }}
{%endif%}
{%endfor%}
</div>
</div>
{%endfor%}
</div>
{{ knp_pagination_render(pagination) }}
</div>
</div>
</main>
{%endblock%}