templates/event/detail.html.twig line 1

Open in your IDE?
  1. {% extends "base.html.twig" %}
  2. {% block title %}SoliBikes : {{ event.title }} {% endblock %}
  3. {% block description %}SoliBikes : {{ event.title }} {% endblock %}
  4. {% block imageog %}https://solibikes.com{{ asset('uploads/') ~ event.principalimage }}{% endblock %}
  5. {% block urlog %}https://solibikes.com{{ path('frontend_event_detail', {'alias': event.alias}) }}{% endblock %}
  6. {% block titleog %}SoliBikes : {{ event.title }} {% endblock %}
  7. {% block ogdescription %}SoliBikes : {{ event.title }} {% endblock %}
  8. {% block body %}
  9.     <!-- Page Title -->
  10.     <section class="page-title bg-transparent">
  11.         <div class="container">
  12.             <div class="page-title-row">
  13.                 <div class="page-title-content">
  14.                     <h1>{{ event.title }}</h1>
  15.                 </div>
  16.                 <nav aria-label="breadcrumb">
  17.                     <ol class="breadcrumb">
  18.                         <li class="breadcrumb-item">
  19.                             <a href="{{ path('frontend_index') }}">Acceuil</a>
  20.                         </li>
  21.                         <li class="breadcrumb-item">
  22.                             <a href="{{ path('frontend_event_liste') }}">Événements</a>
  23.                         </li>
  24.                         <li class="breadcrumb-item active" aria-current="page">{{ event.title }}</li>
  25.                     </ol>
  26.                 </nav>
  27.             </div>
  28.         </div>
  29.     </section>
  30.     <!-- .page-title end -->
  31.     <!-- Content -->
  32.     <section id="content">
  33.         <div class="content-wrap bg-light overflow-visible pb-0">
  34.             <div class="container">
  35.                 <div class="single-event">
  36.                     <div class="row flex-lg-row-reverse gutter-40">
  37.                         <div class="col-lg-4 position-lg-sticky h-100" style="top: 100px;">
  38.                             <div class="event-meta bg-white shadow-sm p-4 rounded-4 mb-3">
  39.                                 <h4 class="mb-4 fs-5 fw-semibold">Détails</h4>
  40.                                 <ul class="mb-0">
  41.                                     <li class="row gx-3 gy-4 mb-4">
  42.                                         <div class="col-auto">
  43.                                             <i class="box-square-sm d-flex align-items-center justify-content-center bi-calendar4-event fs-3 color position-relative"></i>
  44.                                         </div>
  45.                                         <div class="col mb-0 op-09 ps-3 fs-6">Date début
  46.                                             <br>{{ event.start| date('d-m-Y H:i')  }}
  47.                                         </div>
  48.                                     </li>
  49.                                     <li class="row gx-3 gy-4 mb-4">
  50.                                         <div class="col-auto">
  51.                                             <i class="box-square-sm d-flex align-items-center justify-content-center bi-calendar4-event fs-3 color position-relative"></i>
  52.                                         </div>
  53.                                         <div class="col mb-0 op-09 ps-3 fs-6">Date fin
  54.                                             <br>{{ event.end| date('d-m-Y H:i')  }}</div>
  55.                                     </li>
  56.                                     <li class="row gx-3 gy-4 mb-4">
  57.                                         <div class="col-auto">
  58.                                             <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>
  59.                                         </div>
  60.                                         <div class="col mb-0 op-09 ps-3 fs-6">Difficulté
  61.                                             <br>{{ event.difficulty }}</div>
  62.                                     </li>
  63.                                     <li class="row gx-3 gy-4">
  64.                                         <div class="col-auto">
  65.                                             <i class="box-square-sm d-flex align-items-center justify-content-center fa-solid fa-route fs-3 color position-relative"></i>
  66.                                         </div>
  67.                                         <div class="col mb-0 op-09 ps-3 fs-6">Trajet
  68.                                             <br>{{ event.journey }}
  69.                                             Km
  70.                                         </div>
  71.                                     </li>
  72.                                 </ul>
  73.                             </div>
  74.                         </div>
  75.                         <div class="event-meta bg-white shadow-sm col-lg-8 cairo-45">
  76.                             <div class="entry-image mb-5">
  77.                                 <a href="#"><img src="{{ asset('uploads/') ~ event.banner }}" alt="{{ event.title }}" class="rounded-4"></a>
  78.                             </div>
  79.                             <h1 class="mb-3" style="text-align: center">{{ event.title }}</h1>
  80.                             <p>{{ event.detailedDescription | raw }}-</p>
  81.                             <p><img src="{{ asset('uploads/') ~ event.principalimage }}" width="450">
  82.                                 {% for image in event.multipleimage %}
  83.                                 <img src="{{ asset('uploads/') ~ image }}" style="width: 100%;">
  84.                                 {% endfor%}
  85.                             </p>
  86.                                     {% if event.statut %}
  87.                             <div class="col-auto">
  88.                                         <a href="https://app.solibikes.com/#/order/{{ event.alias }}" class="button rounded-4 fw-normal button-green" style="width: 100%;">Réserver</a>
  89.                                     </div>
  90.                                     {% else %}
  91.                                     Désolé, les réservations sont actuellement complètes. Veuillez nous rejoindre pour les prochaines sorties vélo.  À bientôt !
  92.                                     {% endif %}
  93.                         </div>
  94.                     </div>
  95.                 </div>
  96.             </div>
  97.             <div class="bg-white w-100 py-4 shadow-sm position-sticky bottom-0 mt-6">
  98.                 <div class="row align-items-center justify-content-between mx-0 px-2">
  99.                     <div class="col-auto">
  100.                         <a href="#" class="d-flex align-items-center justify-content-center">
  101.                             <i class="fs-2 bi-chevron-left text-black h-color align-middle"></i>
  102.                         </a>
  103.                     </div>
  104.                     <div class="col">
  105.                         <div class="container px-0">
  106.                             <div class="row align-items-center justify-content-between mx-0">
  107.                                 <div class="col-auto d-none d-md-block">
  108.                                     <h4 class="fs-5 fw-medium mb-0">{{ event.title }}</h4>
  109.                                 </div>
  110.                                 {% if date("now"| date('d-m-Y H:i')) < date(event.end| date('d-m-Y H:i')) %}
  111.                                     <div class="col-auto ms-md-auto">
  112.                                         Prix avec location vélo
  113.                                         <strong>{{ event.priceWithBike }}
  114.                                             DT</strong><br>
  115.                                         Prix sans loaction vélo (J'ai mon vélo)
  116.                                         <strong>{{ event.priceWithoutBike }}
  117.                                             DT</strong>
  118.                                     </div>
  119.                                     {% if event.statut %}
  120.                                     <div class="col-auto">
  121.                                         <a href="https://app.solibikes.com/#/order/{{ event.alias }}" class="button rounded-4 fw-normal text-center m-0 px-4" >Réserver</a>
  122.                                     </div>
  123.                                     {% else %}
  124.                                     <div class="col-auto">
  125.                                         <a href="#" class="button rounded-4 fw-danger text-center m-0 px-4" style="background: red;">Complet</a>
  126.                                     </div>
  127.                                 {% endif %}
  128.                                 {% endif %}
  129.                             </div>
  130.                         </div>
  131.                     </div>
  132.                     <div class="col-auto">
  133.                         <a href="#" class="d-flex align-items-center justify-content-center">
  134.                             <i class="fs-2 bi-chevron-right text-black h-color align-middle"></i>
  135.                         </a>
  136.                     </div>
  137.                 </div>
  138.             </div>
  139.         </div>
  140.     </section>
  141.     <!-- #content end -->
  142. {% endblock %}
  143. {% block javascripts %}
  144.     <script src="{{ asset('frontend/js/plugins.lightbox.js') }}"></script>
  145.     <script src="{{ asset('frontend/js/plugins.isotope.js') }}"></script>
  146.     <script src="{{ asset('frontend/js/fn.masonrythumbs.js') }}"></script>
  147.     <script src="{{ asset('frontend/js/module.masonrythumbs.js') }}"></script>
  148. {% endblock %}