{%if bfedition.description.hasimage == true %}
<div class="fancy-gallery my-5">
<div class="row justify-content-center">
{%if bfedition.description.image1 != null %}
<a href="{{ vich_uploader_asset(bfedition.description, 'image1File') }}" class="mb-4 col-6 col-sm-4 img-fluid" data-fancybox="images">
<img src="{{ vich_uploader_asset(bfedition.description, 'image1File') }}" alt="" />
</a>
{%endif%}
{%if bfedition.description.image2 != null %}
<a href="{{ vich_uploader_asset(bfedition.description, 'image2File') }}" class="mb-4 col-6 col-sm-4 img-fluid" data-fancybox="images">
<img src="{{ vich_uploader_asset(bfedition.description, 'image2File') }}" alt="" />
</a>
{%endif%}
{%if bfedition.description.image3 != null %}
<a href="{{ vich_uploader_asset(bfedition.description, 'image3File') }}" class="mb-4 col-6 col-sm-4 img-fluid" data-fancybox="images">
<img src="{{ vich_uploader_asset(bfedition.description, 'image3File') }}" alt="" />
</a>
{%endif%}
</div>
</div>
{%endif%}
{%if bfedition.haschallengeeditionsactive == true %}
<div class="mt-2">
{% for bfchallengeedition in bfedition.challengeeditionsactive %}
<a href="{{ path('challenge_view', {'idedition':bfchallengeedition.id}, relative = false) }}">
<span class="badge badge-primary mr-1" style="background-color:{{bfchallengeedition.description.labelcolor}}">
<span class="font-weight-normal font-xs">{{bfchallengeedition.description.labeltext}}</span>
</span>
{{bfchallengeedition.challenge.name}} - {{bfchallengeedition.name}}
</a><br />
{%endfor%}
</div>
{%endif%}
<div class="mt-4">
{{bfedition.description.longdescription|nl2br}}
</div>
<div class="row mt-5">
<div class="col">
<div class="card card-body bg-soft border-light p-2">
<div class="card-group bg-soft">
{%if bfedition.countdays != null%}
<div class="card mb-0">
<div class="card-body text-center px-0 px-md-3">
<div class="icon icon-secondary">
<span class="fas fa-calendar-week"></span>
</div>
<!-- Heading -->
<div class="h5 mt-3 mb-0">
<span class="counter text-dark"> {{bfedition.countdays}} </span>
</div>
<span class="text-muted h6 font-weight-normal mb-0">
{%if bfedition.countdays>1%}
jours
{%else%}
jour
{%endif%}
de compétition
</span>
</div>
</div>
{%endif%}
{%if bfedition.counttournois != null%}
<div class="card mb-0 border-left">
<div class="card-body text-center px-0 px-md-3">
<div class="icon icon-secondary">
<span class="fas fa-trophy"></span>
</div>
<!-- Heading -->
<div class="h5 mt-3 mb-0">
<span class="counter text-dark">{{bfedition.counttournois}} </span>
</div>
<span class="text-muted h6 font-weight-normal mb-0">
{%if bfedition.counttournois>1%}
compétitions
{%else%}
compétition
{%endif%}
</span>
</div>
</div>
{%endif%}
{%if bfedition.description.participantnumber!= null%}
<div class="card mb-0 border-left">
<div class="card-body text-center px-0 px-md-3">
<div class="icon icon-secondary">
<span class="fas fa-users"></span>
</div>
<!-- Heading -->
<div class="h5 mt-3 mb-0">
<span class="counter text-dark mr-2">{{bfedition.description.participantnumber}}</span>+
</div>
<span class="text-muted h6 font-weight-normal mb-0">
compétiteurs attendus
</span>
</div>
</div>
{%endif%}
{%if bfedition.description.awards!= null%}
<div class="card mb-0 border-left">
<div class="card-body text-center px-0 px-md-3">
<div class="icon icon-secondary">
<span class="fas fa-award mr-2"></span>
</div>
<!-- Heading -->
<div class="h5 mt-3 mb-0">
<span class="counter text-dark">{{bfedition.description.awards}}</span>
</div>
<span class="text-muted h6 font-weight-normal mb-0">
€ à gagner
</span>
</div>
</div>
{%endif%}
</div>
</div>
</div>
</div>
{%for bftournoi in bfedition.tournois%}
<div class="row mt-5">
<div class="card card-sm card-body border-light">
<div class="mb-2">
<span class="icon-title h6 mb-0 font-weight-bold"><i class="fas fa-trophy mr-3"></i>{{bftournoi.name}} : {{bftournoi.startdate|date("d/m")}} - {{bftournoi.enddate|date("d/m")}}</span>
</div>
<div>
{%if bftournoi.description.extra != null %}
<h6><u>Le plus:</u> {{bftournoi.description.extra}} </h6>
{%endif%}
<p>
{{bftournoi.description.longdescription|nl2br}}
</p>
<h6><u>Séances:</u></h6>
<p>
{%for bfseance in bftournoi.seances%}
<i class="fas fa-calendar-day mr-1"></i>{{bfseance.name}}: {{bfseance.startdate|date("d/m H:i")}} <br />
{%endfor%}
</p>
{%if bftournoi.description.price != null %}
<h6><u>Tarif:</u> <i class="fas fa-euro-sign"></i> {{bftournoi.description.price}}</h6>
{%endif%}
</div>
</div>
</div>
{%endfor%}
{%if bfedition.description.website != null %}
<div class="row mt-3 justify-content-center">
<p class="text-center">
Plus d'informations : <a href="{{bfedition.description.website}}" target="_blank">{{bfedition.description.website}}</a>
</p>
</div>
{%endif%}