templates/event/list.html.twig line 1

Open in your IDE?
  1. {% extends "base.html.twig" %}
  2. {% block body %}
  3.     <!-- Page Title -->
  4.     <section class="page-title bg-transparent">
  5.         <div class="container">
  6.             <div class="page-title-row">
  7.                 <div class="page-title-content">
  8.                     <h1>Liste des évènements</h1>
  9.                     <span>Vitrine des évènements</span>
  10.                 </div>
  11.                 <nav aria-label="breadcrumb">
  12.                     <ol class="breadcrumb">
  13.                         <li class="breadcrumb-item">
  14.                             <a href="{{ path('frontend_index') }}">Acceuil</a>
  15.                         </li>
  16.                         <li class="breadcrumb-item active" aria-current="page">Événements</li>
  17.                     </ol>
  18.                 </nav>
  19.             </div>
  20.         </div>
  21.     </section>
  22.     <!-- .page-title end -->
  23.     <!-- Content -->
  24.     <section id="content">
  25.         <div class="content-wrap">
  26.             <div class="container">
  27.                 <div class="row g-4 mb-5">
  28.                     {% for event in liste %}
  29.                         <article class="entry event col-12 mb-4">
  30.                             <div class="grid-inner bg-white row g-0 p-3 border-0 rounded-5 shadow-sm h-shadow all-ts h-translate-y-sm">
  31.                                 <div class="col-md-4 mb-md-0">
  32.                                     <a href="{{ path('frontend_event_detail', {'alias': event.alias}) }}" class="entry-image mb-0 h-100">
  33.                                         <img src="{{ asset('uploads/') ~ event.banner }}" alt="{{ event.title }}" class="rounded-2 h-100 object-cover">
  34.                                         <div class="bg-overlay">
  35.                                             <div class="bg-overlay-content justify-content-start align-items-start">
  36.                                                 <div class="badge bg-light text-dark rounded-pill">{{ event.difficulty }}</div>
  37.                                             </div>
  38.                                         </div>
  39.                                     </a>
  40.                                 </div>
  41.                                 <div class="col-md-8 p-4">
  42.                                     <div class="entry-meta no-separator mb-1 mt-0">
  43.                                         <ul>
  44.                                             <li><span class="text-uppercase fw-medium">{{ event.start| date('d-m-Y H:i') }}</span></li>
  45.                                         </ul>
  46.                                     </div>
  47.                                     <div class="entry-title nott">
  48.                                         <h3>
  49.                                             <a href="{{ path('frontend_event_detail', {'alias': event.alias}) }}">{{ event.title }}</a>
  50.                                         </h3>
  51.                                     </div>
  52.                                     <div class="entry-content my-3">
  53.                                         <p class="mb-0">{{ event.description }}</p>
  54.                                     </div>
  55.                                     <div class="entry-meta no-separator">
  56.                                         <ul>
  57.                                             <li><a href="#" class="fw-normal"><i class="fa-solid fa-route"></i>{{ event.journey }}Km</a></li>
  58.                                         </ul>
  59.                                     </div>
  60.                                 </div>
  61.                             </div>
  62.                         </article>
  63.                     {% endfor %}
  64.                 </div>
  65.                 <!-- Pager -->
  66.                 <div class="d-flex justify-content-between">
  67.                     <a href="#" class="btn btn-outline-secondary">&larr; Anciens</a>
  68.                     <a href="#" class="btn btn-outline-dark">Récents &rarr;</a>
  69.                 </div>
  70.                 <!-- .pager end -->
  71.             </div>
  72.         </div>
  73.     </section>
  74.     <!-- #content end -->
  75. {% endblock %}
  76. {% block javascripts %}{% endblock %}