templates/public/projects.html.twig line 1

Open in your IDE?
  1. {% extends 'base.html.twig' %}
  2. {% block title %}Projets immobiliers{% endblock %}
  3. {% block body %}
  4. <section class="section">
  5.     <div class="page-header">
  6.         <div>
  7.             <p class="breadcrumb"><a href="{{ path('public_home') }}">Accueil</a> / Projets</p>
  8.             <h1>Projets immobiliers</h1>
  9.             <p>Catalogue public des programmes publiés.</p>
  10.         </div>
  11.         <a class="primary-button" href="{{ path('app_login') }}"><i data-lucide="lock"></i>Espace client</a>
  12.     </div>
  13.     <form class="toolbar search-form">
  14.         <input name="q" value="{{ q }}" placeholder="Rechercher par ville, commune ou référence">
  15.         <button class="ghost-button" type="submit"><i data-lucide="search"></i>Rechercher</button>
  16.     </form>
  17.     <div class="grid three">
  18.         {% for project in projects %}
  19.             <article class="card">
  20.                 <span class="badge {{ project.status|status_class }}">{{ project.status|status_label }}</span>
  21.                 <h2>{{ project.name }}</h2>
  22.                 <p>{{ project.city }}{% if project.quarter %}, {{ project.quarter }}{% endif %}</p>
  23.                 <p>{{ project.description|slice(0, 150) }}{% if project.description|length > 150 %}...{% endif %}</p>
  24.                 <a class="primary-button compact" href="{{ path('public_project_show', {id: project.id}) }}">Consulter</a>
  25.             </article>
  26.         {% else %}
  27.             <div class="empty-state">Aucun projet ne correspond à la recherche.</div>
  28.         {% endfor %}
  29.     </div>
  30. </section>
  31. {% endblock %}