{% extends "appli_recherche/base.html" %}
{% load i18n %}
{% load crispy_forms_tags %}
{% load pagination_tags %}

{% block body %}
  <h2>{% trans "Les annonces" %}</h2>
  {% crispy form form.helper %}
  <p id="resultat-count">{% blocktrans with count=annonces.count %}{{count}} résultats{% endblocktrans %}</p>
  {% autopaginate annonces 20 %}
  {% paginate %}
  {% for annonce in annonces %}
    {% include "appli_recherche/annonce.html" %}
  {% endfor %}
  {% paginate %}
{% endblock %}
