templates/circuit/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 circuits</h1>
  9.                     <span>Vitrine des circuits</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">Circuits</li>
  17.                     </ol>
  18.                 </nav>
  19.             </div>
  20.         </div>
  21.     </section>
  22.     <!-- .page-title end -->
  23.     <!-- Content -->
  24.     <div class="container p-5">
  25.         <div class="row">
  26.             {% for circuit in circuits %}
  27.                 <div class="row col-lg-4 col-md-6 ">
  28.                     <article class="entry event col-12 mb-0">
  29.                         <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">
  30.                             <div class="col-12 mb-md-0">
  31.                                 <a href="{{ path('frontend_circuit_detail', {'alias': circuit.alias}) }}" class="entry-image">
  32.                                     <img src="{{ asset('uploads/') ~ circuit.image }}" alt="Inventore voluptates velit totam ipsa tenetur" class="rounded-2">
  33.                                     <div class="bg-overlay">
  34.                                         <div class="bg-overlay-content justify-content-start align-items-start">
  35.                                             <div class="badge bg-danger text-light rounded-pill">{{ circuit.difficulty }}</div>
  36.                                         </div>
  37.                                     </div>
  38.                                 </a>
  39.                             </div>
  40.                             <div class="col-12 p-4 pt-0">
  41.                                 <div class="entry-meta no-separator mb-1 mt-0">
  42.                                 </div>
  43.                                 <div class="entry-title nott">
  44.                                     <h3>
  45.                                         <a href="{{ path('frontend_circuit_detail', {'alias': circuit.alias}) }}">{{ circuit.title }}</a>
  46.                                     </h3>
  47.                                 </div>
  48.                                 <div class="entry-content my-3">
  49.                                     <p class="mb-0">{{ circuit.shortdescription | raw }}.</p>
  50.                                 </div>
  51.                                 <div class="entry-meta no-separator">
  52.                                     <ul>
  53.                                         <li><a href="#" class="fw-normal"><i class="fa-solid fa-route"></i>{{ circuit.distance }}Km</a></li>
  54.                                         <li><a href="#" class="fw-normal"><i class="fa-solid fa-clock"></i>{{ circuit.duration }}</a></li>
  55.                                     </ul>
  56.                                 </div>
  57.                             </div>
  58.                         </div>
  59.                     </article>
  60.                 </div>
  61.             {% endfor %}
  62.         </div>
  63.     </div>
  64.     <!-- #content end -->
  65. {% endblock %}
  66. {% block javascripts %}{% endblock %}