{% extends 'admin/_layout.html.twig' %} {% block title %}Recherche « {{ q }} » — Admin{% endblock %} {% block page_title %}Recherche{% endblock %} {% block page_subtitle %}{{ results|length }} résultat{{ results|length > 1 ? 's' : '' }} pour « {{ q }} »{% endblock %} {% block admin_body %} {% if q|length < 2 %}

Saisissez au moins 2 caractères pour lancer une recherche.

{% elseif results|length == 0 %}

Aucun résultat pour « {{ q }} »

{% else %} {% set lastCat = '' %} {% for item in results %} {% if item.category != lastCat %} {% if lastCat != '' %} {% endif %} {% set lastCat = item.category %}
{{ item.category }}
{% endif %}
{{ item.label }}
{% if item.sub %}
{{ item.sub }}
{% endif %}
{% endfor %} {% if lastCat != '' %}
{% endif %} {% endif %} {% endblock %}