templates/events/event-tickets.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block head %}
  3. {% endblock %}
  4. {% block body %}
  5.     <!-- HEADING -->
  6.     <div class="container-fluid d-flex align-items-end bg-blue sctn-heading">
  7.         <div class="row px-5">
  8.             <div class="col-xl-8 col-12">
  9.                 <p class="text-white text-uppercase sttl">{{ event.name }}</p>
  10.             </div>
  11.             <div class="col-xl-6 col-md-8 col-12 mb-5 mt-2">
  12.                 <span class="text-white me-4"><i class="bi bi-geo-alt-fill me-2"></i>{{ event.location }}</span>
  13.                 <br>
  14.                 <br>
  15.                 <span class="text-white"><i class="bi bi-calendar-event-fill me-2"></i> {{ event.dateEvent|format_date('none', 'd MMMM Y', null, 'gregorian', 'es') }}</span>
  16.             </div>
  17.         </div>
  18.     </div>
  19.     <!-- SUBTITLE - DESCRIPTION -->
  20.     <div class="container-fluid">
  21.         <div class="row pt-5 px-4">
  22.             <div class="col-12">
  23.                 <div class="accordion accordion-flush" id="accordionFlushExample">
  24.                     <div class="accordion-item">
  25.                         <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#flush-collapseOne" aria-expanded="false" aria-controls="flush-collapseOne">
  26.                             <p class="sttl">Ver descripciĆ³n</p>
  27.                         </button>
  28.                         <div id="flush-collapseOne" class="accordion-collapse collapse" aria-labelledby="flush-headingOne" data-bs-parent="#accordionFlushExample">
  29.                             <div class="accordion-body">{{ event.description|raw }}</div>
  30.                         </div>
  31.                         
  32.                     </div>
  33.                 </div>
  34.             </div>
  35.         </div>
  36.     </div>
  37.     <!-- SUBTITLE - TICKETS -->
  38.     <div class="container-fluid">
  39.         <div class="row pt-3 px-5">
  40.             <div class="col-12">
  41.                 <p class="sttl">Tickets</p>
  42.             </div>
  43.         </div>
  44.     </div>
  45.     <!-- EVENTS TICKETS CARDS -->
  46.     <div class="conatiner-fluid px-4">
  47.         <div class="row d-flex justify-content-center pt-4 pb-5 px-5">
  48.             {% if format is not defined or format == 1 %}
  49.                 {{ render(controller('App\\Controller\\TicketController::includeTickets',{request: app.request})) }} 
  50.             {% else %}
  51.                 {{ render(controller('App\\Controller\\PackController::includePacks',{request: app.request})) }} 
  52.             {% endif %}
  53.         </div>
  54.     </div>
  55.     <script>
  56.         var acc = document.getElementsByClassName("accordion");
  57.         var i;
  58.         for (i = 0; i < acc.length; i++) {
  59.             acc[i].addEventListener("click", function() {
  60.                 this.classList.toggle("active");
  61.                 var panel = this.nextElementSibling;
  62.                 if (panel.style.display === "block") {
  63.                     panel.style.display = "none";
  64.                 } else {
  65.                     panel.style.display = "block";
  66.                 }
  67.             });
  68.         }
  69.     </script>
  70. {% endblock %}