templates/pages/page.ventes.html.twig line 1
{% extends 'base.html.twig' %}
{% block title %}{{ settings[0].siteName }} : {{ page.name }}{% endblock %}
{% block body %}
{% include '_includes/_breadcrumbs.html.twig' %}
<div class="container pt-5">
<div class="row d-flex justify-content-center mb-5">
<div class="col-lg-6 col-sm-12 text-center">
<h4 class="text-uppercase fw-bold color1">{{ page.title|raw }}</h4>
<div class="text-small color2">
{{ page.subtitle|replace({'<div>': '', '</div>': '', '<p>': '', '</p>': '',})|raw }}
</div>
</div>
</div>
</div>
<div class="container pb-4">
<div class="row row-cols-1 row-cols-md-3 g-5 ventes">
{% for vente in ventes %}
<div class="col text-center ventes">
<div class="card h-100">
<img src="{{ asset('assets/img/ventes/' ~ vente.image ) }}" class="card-img-top img-fluid" alt="{{ vente.title }}">
<div class="card-body">
<p class="lead color1 fw-bold">{{ vente.title }}</p>
<p class="color1">
{{ vente.adresse }}<br>
</p>
<p class="color2 small">
{{ vente.organizedAt|format_datetime('full', 'short', locale='fr') }}<br>
{% set venteprix = (vente.prix)/100 %}
Mise à prix : {{ venteprix|format_currency('EUR', {fraction_digit: 0}) }}
</p>
<a href="{{ vente.buttonLink }}{{ vente.id }}" class="button">{{ vente.buttonText }}</a>
</div>
</div>
</div>
{% endfor %}
</div>
<div class="row mt-3">
<div class="col navigation mt-4 d-flex justify-content-center">
{{ knp_pagination_render(ventes) }}
</div>
</div>
</div>
{% endblock %}