templates/homeeditiondetails.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {%block facebook%}
  3. <meta property="og:type" content="website">
  4. <meta property="og:url" content="https://bridgefestival.fr">
  5. <meta property="og:title" content="{{bfedition.festival.name}} - {{bfedition.name}}">
  6. <meta property="og:description" content="Bridge Festival - Le guide des tournois et festivals de bridge">
  7. {%if bfedition.festival.description.image1 != null%}
  8. <meta property="og:image" content="{{ absolute_url(vich_uploader_asset(bfedition.festival.description, 'image1File')) }}">
  9. {%else%}
  10. <meta property="og:image" content="{{ absolute_url(asset('assets/img/cards-3662554_1920.jpg')) }}">
  11. {%endif%}
  12. {%endblock%}
  13. {%block twitter %}
  14. <meta property="twitter:card" content="summary_large_image">
  15. <meta property="twitter:url" content="https://bridgefestival.fr">
  16. <meta property="twitter:title" content="{{bfedition.festival.name}} - {{bfedition.name}}">
  17. <meta property="twitter:description" content="Bridge Festival - Le guide des tournois et festivals de bridge">
  18. {%if bfedition.festival.description.image1 != null%}
  19. <meta property="twitter:image" content="{{ absolute_url(vich_uploader_asset(bfedition.festival.description, 'image1File')) }}">
  20. {%else%}
  21. <meta property="twitter:image" content="{{ absolute_url(asset('assets/img/cards-3662554_1920.jpg')) }}">
  22. {%endif%}
  23. {%endblock%}
  24. {% block title %}- {{bfedition.festival.name}}: {{bfedition.name}} {% endblock %}
  25. {% block headersection %}
  26. {%if bfedition.festival.description.image1 != null%}
  27. <section class="section section-header section-image bg-primary overlay-primary text-white overflow-hidden pb-6 covernorepeat" data-background="{{ vich_uploader_asset(bfedition.festival.description, 'image1File') }}">
  28.     {%else%}
  29.     <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') }}">
  30.         {%endif%}
  31.         <div class="container">
  32.             <div class="row justify-content-center">
  33.                 <div class="col-12 text-center pt-3">
  34.                     <nav aria-label="breadcrumb">
  35.                         <ol class="breadcrumb breadcrumb-transparent justify-content-center mb-4">
  36.                             <li class="breadcrumb-item"><a href="{{ path('home', {}, relative = false) }}">Accueil</a></li>
  37.                             <li class="breadcrumb-item active"> <a href="{{ path('home_route', {'routename':'search'}, relative = false) }}">Festivals</a></li>
  38.                         </ol>
  39.                     </nav>
  40.                     <!-- Heading -->
  41.                     <h1 class="display-2">
  42.                         {{bfedition.festival.name}}
  43.                     </h1>
  44.                     <h5>
  45.                         {%if bfedition.description.website != null and is_granted('option_website', bfedition)%}
  46.                         <a href="{{bfedition.description.website}}" target="_blank" class="font-weight-bold primary mb-0 mr-1">
  47.                             <i class="fas fa-globe mr-2"></i>{{bfedition.description.website}}
  48.                         </a>
  49.                         {%endif%}
  50.                     </h5>
  51.                     <!-- Text -->
  52.                     <p class="lead text-muted mt-4">
  53.                         {{bfedition.festival.description.longdescription|nl2br}}
  54.                     </p>
  55.                     {{form(formsubscription)}}
  56.                 </div>
  57.             </div>
  58.         </div>
  59.     </section>
  60.     {%endblock%}
  61.     {%block body%}
  62.     <main>
  63.         <div class="section pt-5 pt-lg-6">
  64.             <div class="container">
  65.                 {{ include('flashmessages/flashmessages.html.twig') }}
  66.             </div>
  67.             <div class="container">
  68.                 <div class="row">
  69.                     <div class="col">
  70.                         <div class="tab-content mb-3">
  71.                             <div class="card" aria-labelledby="nav-about-tab">
  72.                                 <h2 class="font-weight-normal">{{bfedition.festival.name}} - {{bfedition.name}}
  73.                                 </h2>
  74.                                 <div class="d-block d-md-flex">
  75.                                     {%if bfedition.haschallengeeditionsactive==true %}
  76.                                     {% for bfchallengeedition in bfedition.challengeeditionsactive %}
  77.                                     <a href="{{ path('challenge_view', {'idedition':bfchallengeedition.id}, relative = false) }}">
  78.                                         <span class="badge badge-primary mr-2" style="background-color:{{bfchallengeedition.description.labelcolor}}">
  79.                                             <span class="font-weight-normal font-xs">{{bfchallengeedition.description.labeltext}}</span>
  80.                                         </span>
  81.                                     </a>
  82.                                     {%endfor%}
  83.                                     {%endif%}
  84.                                 </div>
  85.                                 <div class="d-block d-md-flex">
  86.                                     <span class="lh-120 ml-md-2 mt-2 mb-2"><i class="far fa-calendar-alt  mr-1 pr-1"></i>{{bfedition.startdate|date("d/m/Y")}} - {{bfedition.enddate|date("d/m/Y")}}</span>
  87.                                 </div>
  88.                                 <div class="d-block d-md-flex">
  89.                                     <span class="lh-120 ml-md-2"><i class="fas fa-map-marker-alt mr-1 pr-1"></i>{{bfedition.location}}</span>
  90.                                 </div>
  91.                                 {%if is_granted('option_inscription', bfedition)%}
  92.                                 <nav class="row mt-4">
  93.                                     <div class="nav col nav-tabs flex-column flex-md-row border-light mb-3" id="nav-tab" role="tablist">
  94.                                         <a class="nav-item nav-link active grey" id="nav-about-tab" data-toggle="tab" href="#nav-about" role="tab" aria-controls="nav-about" aria-selected="true"><i class="far fa-address-card mr-2"></i>A propos</a>
  95.                                         <a class="nav-item nav-link greay" id="nav-video-tab" data-toggle="tab" href="#nav-video" role="tab" aria-controls="nav-video" aria-selected="false"><i class="fas fa-signature mr-2"></i>Inscriptions</a>
  96.                                     </div>
  97.                                 </nav>
  98.                                 <div class="tab-content mb-3" id="nav-tabContent">
  99.                                     <div class="tab-pane fade show active " id="nav-about" role="tabpanel" aria-labelledby="nav-about-tab">
  100.                                         {%include('editions/editionabout.html.twig')%}
  101.                                     </div>
  102.                                     <div class="tab-pane fade" id="nav-video" role="tabpanel" aria-labelledby="nav-video-tab">
  103.                                         {%include('editions/editioninscription.html.twig')%}
  104.                                     </div>
  105.                                 </div>
  106.                                 {%else%}
  107.                                 {%include('editions/editionabout.html.twig')%}
  108.                                 {%endif%}
  109.                             </div>
  110.                         </div>
  111.                     </div>
  112.                     <aside class="col-12 col-lg-4">
  113.                         {%if is_granted('canpay', bfedition.festival) and is_granted('option_payment', bfedition.festival) %}
  114.                         {{ render(controller('App\\Controller\\BFProductEditionController::ShowBFProductEditionForEditionDetail', {idedition:bfedition.id}  )) }}
  115.                         {%endif%}
  116.                         <div class="card border-light p-3">
  117.                             <h5 class="font-weight-normal mb-3">Demande d'informations</h5>
  118.                             {{form(formaskmail)}}
  119.                         </div>
  120.                         <div class="card border-light mt-4 p-3">
  121.                             <h5 class="font-weight-normal">Contact</h5>
  122.                             <div class="my-3">
  123.                                 {%if bfedition.description.displayedcontactnumber != null %}
  124.                                 <div><i class="fas fa-phone mr-2"></i>{{bfedition.description.displayedcontactnumber}} </div>
  125.                                 {%endif%}
  126.                                 {%if bfedition.description.displayedcontactmail != null %}
  127.                                 <div>
  128.                                     <i class="fas fa-envelope mr-2"></i>{{bfedition.description.displayedcontactmail}}
  129.                                 </div>
  130.                                 {%endif%}
  131.                             </div>
  132.                         </div>
  133.                     </aside>
  134.                 </div>
  135.             </div>
  136.         </div>
  137.     </main>
  138.     <!-- Recaptcha -->
  139.     <script src="https://www.google.com/recaptcha/api.js?render=6Le2aesUAAAAAG4fDNIF_lqShoh6-PvS2lHexW2K"></script>
  140.     <script src="{{ asset('/assets/js/recaptcha.js') }}"></script>
  141.     {%endblock%}