templates/pages/page.ventes.html.twig line 1

  1. {% extends 'base.html.twig' %}
  2. {% block title %}{{ settings[0].siteName }} : {{ page.name }}{% endblock %}
  3. {% block body %}
  4.     {% include '_includes/_breadcrumbs.html.twig' %}
  5.     <div class="container pt-5">
  6.         <div class="row d-flex justify-content-center mb-5">
  7.             <div class="col-lg-6 col-sm-12 text-center">
  8.                 <h4 class="text-uppercase fw-bold color1">{{ page.title|raw }}</h4>
  9.                 <div class="text-small color2">
  10.                     {{ page.subtitle|replace({'<div>': '', '</div>': '', '<p>': '', '</p>': '',})|raw }}
  11.                 </div>
  12.             </div>
  13.         </div>
  14.     </div>
  15.     <div class="container pb-4">
  16.         <div class="row row-cols-1 row-cols-md-3 g-5 ventes">
  17.             {% for vente in ventes %}
  18.                 <div class="col text-center ventes">
  19.                     <div class="card h-100">
  20.                         <img src="{{ asset('assets/img/ventes/' ~ vente.image ) }}" class="card-img-top img-fluid" alt="{{ vente.title }}">
  21.                         <div class="card-body">
  22.                             <p class="lead color1 fw-bold">{{ vente.title }}</p>
  23.                             <p class="color1">
  24.                                 {{ vente.adresse }}<br>
  25.                             </p>
  26.                             <p class="color2 small">
  27.                                 {{ vente.organizedAt|format_datetime('full', 'short', locale='fr') }}<br>
  28.                                 {% set venteprix = (vente.prix)/100 %}
  29.                                 Mise à prix : {{ venteprix|format_currency('EUR', {fraction_digit: 0}) }}
  30.                             </p>
  31.                             <a href="{{ vente.buttonLink }}{{ vente.id }}" class="button">{{ vente.buttonText }}</a>
  32.                         </div>
  33.                     </div>
  34.                 </div>
  35.             {% endfor %}
  36.         </div>
  37.         <div class="row mt-3">
  38.             <div class="col navigation mt-4 d-flex justify-content-center">
  39.                 {{ knp_pagination_render(ventes) }}
  40.             </div>
  41.         </div>
  42.     </div>
  43. {% endblock %}