{% extends 'base.html' %} {% load crispy_forms_filters highlight i18n search_results_tables django_tables2 %} {% block content %}

{% trans "Search" %}

{% csrf_token %} {{ form|crispy }}

{% trans "Results" %}

{% regroup page.object_list by model_name as categories %} {% for category in categories %}

{% trans category.grouper|capfirst %}

{% with table=category.list|search_table %} {% render_table table %} {% endwith %} {% empty %}

{% trans "No results found." %}

{% endfor %} {% if page.has_previous or page.has_next %}
{% if page.has_previous %}{% endif %}« Previous{% if page.has_previous %}{% endif %} | {% if page.has_next %}{% endif %}Next »{% if page.has_next %}{% endif %}
{% endif %}
{% endblock %}