templates/editions/editionlistviewinactive.html.twig line 1

Open in your IDE?
  1. <div class="row">
  2.     <div class="col-lg-12 ">
  3.         <div class="card border-light mb-4 animate-up-5 bg-light">
  4.             <div class="row no-gutters align-items-center">
  5.                 <div class="col-12 col-lg-6 col-xl-5">
  6.                     {%if bfedition.festival.description.image1 != null%}
  7.                     <img src="{{ vich_uploader_asset(bfedition.festival.description, 'image1File') }}" alt="image" class="card-img-top space-image-lg">
  8.                     {%else%}
  9.                     <img src="{{ asset('assets/img/cards-3662554_1920.jpg') }}" alt="image" class="card-img p-2 rounded-xl">
  10.                     {%endif%}
  11.                     <div class=" position-absolute listing-badge">
  12.                         {%if bfedition.haschallengeeditionsactive==true %}
  13.                         {% for bfchallengeedition in bfedition.challengeeditionsactive %}
  14.                         <span class="badge badge-primary" style="background-color:{{bfchallengeedition.description.labelcolor}}">
  15.                             <span class="font-weight-normal font-xs">{{bfchallengeedition.description.labeltext}}</span>
  16.                         </span>
  17.                         {%endfor%}
  18.                         {%endif%}
  19.                     </div>
  20.                 </div>
  21.                 <div class="col-12 col-lg-6 col-xl-7">
  22.                     <div class="card-body px-3 py-2">
  23.                         <h4 class="font-weight-normal mb-0">{{bfedition.festival.name}} - {{bfedition.name}}</h4>
  24.                         <div class="post-meta">
  25.                             <span class="small lh-120"><i class="far fa-calendar-alt mr-2"></i>{{bfedition.startdate|date("d/m/y")}} - {{bfedition.enddate|date("d/m/y")}}</span>
  26.                         </div>
  27.                         <div class="post-meta">
  28.                             <span class="small lh-120"><i class="fas fa-map-marker-alt mr-2"></i>{{bfedition.location}}</span>
  29.                         </div>
  30.                         {%if bfedition.description.awards != null%}
  31.                         <div class="post-meta">
  32.                             <span class="small lh-120"><i class="fas fa-award mr-2"></i>{{bfedition.description.awards}} â‚¬ </span>
  33.                         </div>
  34.                         {%endif%}
  35.                         {%if bfedition.description.website != null and is_granted('option_website', bfedition)%}
  36.                         <div class="post-meta">
  37.                             <span class="small lh-120">
  38.                                 <a href="{{bfedition.description.website}}" target="_blank" class="font-weight-bold primary mb-0 mr-0">
  39.                                     <i class="fas fa-globe mr-2"></i>{{bfedition.description.website}}
  40.                                 </a>
  41.                             </span>
  42.                         </div>
  43.                         {%endif%}
  44.                         <div class="d-flex justify-content-between">
  45.                             {%if bfedition.countdays != null%}
  46.                             <div class="col pl-0">
  47.                                 <span class="text-muted font-small d-block mb-2">
  48.                                     {%if bfedition.countdays>1%}
  49.                                     Jours
  50.                                     {%else%}
  51.                                     Jour
  52.                                     {%endif%}
  53.                                 </span>
  54.                                 <span class="h5 text-dark font-weight-bold">{{bfedition.countdays}}</span>
  55.                             </div>
  56.                             {%endif%}
  57.                             {%if bfedition.counttournois != null%}
  58.                             <div class="col">
  59.                                 <span class="text-muted font-small d-block mb-2">CompĂ©titions</span>
  60.                                 <span class="h5 text-dark font-weight-bold">{{bfedition.counttournois}}</span>
  61.                             </div>
  62.                             {%endif%}
  63.                             {%if bfedition.description.participantnumber!= null%}
  64.                             <div class="col pr-0">
  65.                                 <span class="text-muted font-small d-block mb-2">Participants</span>
  66.                                 <span class="h5 text-dark font-weight-bold">{{bfedition.description.participantnumber}}</span>
  67.                             </div>
  68.                             {%endif%}
  69.                         </div>
  70.                     </div>
  71.                 </div>
  72.             </div>
  73.         </div>
  74.     </div>
  75. </div>