templates/circuit/detail.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>{{ circuit.title }}</h1>
  9.                 </div>
  10.                 <nav aria-label="breadcrumb">
  11.                     <ol class="breadcrumb">
  12.                         <li class="breadcrumb-item">
  13.                             <a href="{{ path('frontend_index') }}">Acceuil</a>
  14.                         </li>
  15.                         <li class="breadcrumb-item">
  16.                             <a href="{{ path('frontend_circuit_liste') }}">Circuits</a>
  17.                         </li>
  18.                         <li class="breadcrumb-item active" aria-current="page">{{ circuit.title }}</li>
  19.                     </ol>
  20.                 </nav>
  21.             </div>
  22.         </div>
  23.     </section>
  24.     <!-- .page-title end -->
  25.     <!-- Content -->
  26.     <section id="content">
  27.         <div class="content-wrap bg-light overflow-visible pb-0">
  28.             <div class="container">
  29.                 <div class="single-event">
  30.                     <div class="row flex-lg-row-reverse gutter-40">
  31.                         <div class="col-lg-4 position-lg-sticky h-100" style="top: 100px;">
  32.                         
  33.                             <div class="event-meta bg-white shadow-sm p-4 rounded-4 mb-3">
  34.                                 <h4 class="mb-4 fs-5 fw-semibold">Event Info</h4>
  35.                                 <ul class="mb-0">
  36.                                     <li class="row gx-3 gy-4 mb-4">
  37.                                         <div class="col-auto">
  38.                                             <i class="box-square-sm d-flex align-items-center justify-content-center fa-solid fa-level-up-alt fs-3 color position-relative"></i>
  39.                                         </div>
  40.                                         <div class="col mb-0 op-09 ps-3 fs-6">Difficulté
  41.                                             <br>{{ circuit.difficulty  }}
  42.                                         </div>
  43.                                     </li>
  44.                                     <li class="row gx-3 gy-4 mb-4">
  45.                                         <div class="col-auto">
  46.                                             <i class="box-square-sm d-flex align-items-center justify-content-center fa-solid fa-route fs-3 color position-relative"></i>
  47.                                         </div>
  48.                                         <div class="col mb-0 op-09 ps-3 fs-6">Distance
  49.                                             <br>{{ circuit.distance  }}
  50.                                             Km</div>
  51.                                     </li>
  52.                                     <li class="row gx-3 gy-4 mb-4">
  53.                                         <div class="col-auto">
  54.                                             <i class="box-square-sm d-flex align-items-center justify-content-center fa-solid fa-clock fs-3 color position-relative"></i>
  55.                                         </div>
  56.                                         <div class="col mb-0 op-09 ps-3 fs-6">Durée
  57.                                             <br>{{ circuit.duration }}
  58.                                             Min</div>
  59.                                     </li>
  60.                                     <li class="row gx-3 gy-4 mb-4">
  61.                                         <div class="col-auto">
  62.                                             <i class="box-square-sm d-flex align-items-center justify-content-center uil-pricetag-alt fs-3 color position-relative"></i>
  63.                                         </div>
  64.                                         <div class="col mb-0 op-09 ps-3 fs-6">Prix avec location vélo
  65.                                         <strong>{{ circuit.priceWithBike }}
  66.                                             DT</strong><br>
  67.                                         Prix sans loaction vélo 
  68.                                         <strong>{{ circuit.priceWithoutBike }}
  69.                                             DT</strong></div>
  70.                                     </li>
  71.                                 </ul>
  72.                             </div>
  73.                             <div class="d-flex justify-content-end">
  74.                                 <a href="#" class="social-icon si-small border-transparent op-03 h-op-1" data-bs-toggle="tooltip" data-bs-placement="top" title="Share on Facebook">
  75.                                     <i class="fa-brands fa-facebook-f text-dark h-color-facebook m-0"></i>
  76.                                 </a>
  77.                                 <a href="#" class="social-icon si-small border-transparent op-03 h-op-1" data-bs-toggle="tooltip" data-bs-placement="top" title="Share on Twitter">
  78.                                     <i class="fa-brands fa-twitter text-dark h-color-twitter m-0"></i>
  79.                                 </a>
  80.                                 <a href="#" class="social-icon si-small border-transparent op-03 h-op-1" data-bs-toggle="tooltip" data-bs-placement="top" title="Share on LinkedIn">
  81.                                     <i class="fa-brands fa-linkedin text-dark h-color-linkedin m-0"></i>
  82.                                 </a>
  83.                                 <a href="#" class="social-icon si-small border-transparent op-03 h-op-1" data-bs-toggle="tooltip" data-bs-placement="top" title="Send by Email">
  84.                                     <i class="fa-solid fa-envelope text-dark h-color-email m-0"></i>
  85.                                 </a>
  86.                                 <a href="#" class="social-icon si-small border-transparent op-03 h-op-1" data-bs-toggle="tooltip" data-bs-placement="top" title="Copy Link">
  87.                                     <i class="bi-clipboard text-dark h-color m-0"></i>
  88.                                 </a>
  89.                             </div>
  90.                         </div>
  91.                         <div class="event-meta bg-white shadow-sm col-lg-8 " style="font-size: 1.5em;">
  92.                             <div class="entry-image mb-5">
  93.                                 <a href="#"><img src="{{ asset('uploads/') ~ circuit.image }}" alt="{{ circuit.title }}" class="rounded-4"></a>
  94.                             </div>
  95.                             
  96.                             <p>{{ circuit.description | raw }}</p>
  97.                             <div class="row col-mb-80 mt-5">
  98.                                 {% if circuit.images %}
  99.                                     <div class="col-md-12">
  100.                                         <!-- Events Single Gallery Thumbs -->
  101.                                         <div class="masonry-thumbs row grid-container" data-lightbox="gallery">
  102.                                             {% for i in circuit.images %}
  103.                                                 <a class="grid-item" href="{{ asset('uploads/') ~ i }}" data-lightbox="gallery-item">
  104.                                                     <img src="{{ asset('uploads/') ~ i }}" alt="Gallery Thumb 1"></a>
  105.                                             {% endfor %}
  106.                                         </div>
  107.                                         <!-- Event Single Gallery Thumbs End -->
  108.                                     </div>
  109.                                 {% endif %}
  110.                             </div>
  111.                         </div>
  112.                     </div>
  113.                 </div>
  114.             </div>
  115.             <div class="bg-white w-100 py-4 shadow-sm position-sticky bottom-0 mt-6">
  116.                 <div class="row align-items-center justify-content-between mx-0 px-2">
  117.                     <div class="col-auto">
  118.                         <a href="#" class="d-flex align-items-center justify-content-center">
  119.                             <i class="fs-2 bi-chevron-left text-black h-color align-middle"></i>
  120.                         </a>
  121.                     </div>
  122.                     <div class="col">
  123.                         <div class="container px-0">
  124.                             <div class="row align-items-center justify-content-between mx-0">
  125.                                 <div class="col-auto d-none d-md-block">
  126.                                     <h4 class="fs-5 fw-medium mb-0">{{ circuit.title }}</h4>
  127.                                 </div>
  128.                                 <div class="col-auto ms-md-auto">
  129.                                         Prix avec location vélo
  130.                                         <strong>{{ circuit.priceWithBike }}
  131.                                             DT</strong><br>
  132.                                         Prix sans loaction vélo (J'ai mon vélo)
  133.                                         <strong>{{ circuit.priceWithoutBike }}
  134.                                             DT</strong>
  135.                                     </div>
  136.                                 <div class="col-auto">
  137.                                     <a href="https://app.solibikes.com/#/order/circuit/{{ circuit.alias }}" class="button rounded-4 fw-normal text-center m-0 px-4">Réserver</a>
  138.                                 </div>
  139.                             </div>
  140.                         </div>
  141.                     </div>
  142.                     <div class="col-auto">
  143.                         <a href="#" class="d-flex align-items-center justify-content-center">
  144.                             <i class="fs-2 bi-chevron-right text-black h-color align-middle"></i>
  145.                         </a>
  146.                     </div>
  147.                 </div>
  148.             </div>
  149.         </div>
  150.     </section>
  151.     <!-- #content end -->
  152. {% endblock %}
  153. {% block javascripts %}{% endblock %}