{%block facebook%}
<meta property="og:type" content="website">
<meta property="og:url" content="https://bridgefestival.fr">
<meta property="og:title" content="{{bfchallenge.name}} - {{bfchallengeedition.name}}">
<meta property="og:description" content="Bridge Festival - Le guide des tournois et festivals de bridge">
{%if bfchallengeedition.challenge.description.image1 != null%}
<meta property="og:image" content="{{ absolute_url(vich_uploader_asset(bfchallengeedition.challenge.description, 'image1File')) }}">
{%else%}
<meta property="og:image" content="{{ absolute_url(asset('assets/img/cards-3662554_1920.jpg')) }}">
{%endif%}
{%endblock%}
{%block twitter %}
<meta property="twitter:card" content="summary_large_image">
<meta property="twitter:url" content="https://bridgefestival.fr">
<meta property="twitter:title" content="{{bfchallenge.name}} - {{bfchallengeedition.name}}">
<meta property="twitter:description" content="Bridge Festival - Le guide des tournois et festivals de bridge">
{%if bfchallengeedition.challenge.description.image1 != null%}
<meta property="twitter:image" content="{{ absolute_url(vich_uploader_asset(bfchallengeedition.challenge.description, 'image1File')) }}">
{%else%}
<meta property="twitter:image" content="{{ absolute_url(asset('assets/img/cards-3662554_1920.jpg')) }}">
{%endif%}
{%endblock%}{% extends 'base.html.twig' %}
{% block title %}- {{bfchallengeedition.challenge.name}} : {{bfchallengeedition.name}} {% endblock %}
{% block headersection %}
<div class="fixed-top">
{{ include('flashmessages/flashmessages.html.twig') }}
</div>
{%if bfchallengeedition.challenge.description.image1 != null%}
<section class="section section-header section-image bg-primary overlay-primary text-white overflow-hidden pb-6 covernorepeat" data-background="{{ vich_uploader_asset(bfchallengeedition.challenge.description, 'image1File') }}">
{%else%}
<section class="section section-header section-image bg-primary overlay-primary text-white overflow-hidden pb-6 covernorepeat" data-background="{{ asset('assets/img/cards-3662554_1920.jpg') }}">
{%endif%}
<div class="container">
<div class="row justify-content-center">
<div class="col-12 text-center pt-3">
<nav aria-label="breadcrumb">
<ol class="breadcrumb breadcrumb-transparent justify-content-center mb-4">
<li class="breadcrumb-item"><a href="{{ path('home', {}, relative = false) }}">Accueil</a></li>
<li class="breadcrumb-item active">Challenges</li>
</ol>
</nav>
<!-- Heading -->
<h1 class="display-2">
{{bfchallenge.name}}
</h1>
<p class="lead text-muted mt-4">
{{bfchallenge.description.longdescription|nl2br}}
</p>
{{form(formsubscription)}}
</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-center">
<div class="col-12 col-lg-9 order-lg-1">
<div class="card" aria-labelledby="nav-about-tab">
<h2 class="font-weight-normal mb-0 pb-0">{{bfchallengeedition.name}}</h2>
{%if bfchallengeedition.description.website!=null%}
<p class="mt-0 mb-0 pt-0 pb-0">
<a href="{{bfchallengeedition.description.website}}" target="_blank">{{bfchallengeedition.description.website}}</a>
</p>
{%endif%}
<p class="mt-1">
{{bfchallengeedition.description.longdescription|nl2br}}
</p>
<p class="mt-1">
{%if bfchallengeedition.description.poster != null%}
<a href="{{ vich_uploader_asset(bfchallengeedition.description, 'posterFile') }}" target="_blank" class="font-weight-bold primary mb-0 mr-1">
<i class="far fa-file mr-2"></i>Affiche
</a> <br />
{%endif%}
{%if bfchallengeedition.description.ranking != null%}
<a href="{{ vich_uploader_asset(bfchallengeedition.description, 'rankingFile') }}" target="_blank" class="font-weight-bold primary mb-0 mr-1">
<i class="far fa-file mr-2"></i>Classement
</a>
{%endif%}
</p>
</div>
<div class="text-right">
<p class="mb-0 font-small">
Nombre de tournois : {{ pagination.getTotalItemCount }}
</p>
</div>
<div class="tab-content mt-4 mt-lg-4 " id="tabcontentexample-5">
<div class="tab-pane fade show active" id="link-example-13" role="tabpanel" aria-labelledby="tab-link-example-13">
{% for bfedition in pagination %}
{% if bfedition.isactive==true and date(bfedition.enddate)>date() %}
{{ render(controller('App\\Controller\\BFEditionController::ShowListView', {id:bfedition.id})) }}
{%else%}
{{ render(controller('App\\Controller\\BFEditionController::ShowListViewInactive', {id:bfedition.id})) }}
{%endif%}
{%endfor%}
</div>
</div>
{{ knp_pagination_render(pagination) }}
</div>
</div>
</div>
</div>
</main>
{%endblock%}