{% extends "base.html" %} {% from "macros.html" import icon, btn, badge %} {% block title %}{{ t('Search') }}{% endblock %} {% block content %}
{{ icon('search', 16) }}
{% block search_results %} {% if groups %}
{% for group in groups %}
{{ icon('table', 14) }} {{ group.label }} {{ group.hits | length }} {{ t('hits') }}
{% for hit in group.hits %}
{{ icon('arrow-right', 14) }}
{{ hit.label }}
#{{ hit.id }}
{% endfor %}
{% endfor %}
{% elif q %}
{{ icon('search', 24, 'empty-icon') }}

{{ t('No results found') }}

{{ t('We couldn\'t find any records matching your query. Try different keywords or check spelling.') }}

{% else %}
{{ icon('search', 24, 'empty-icon') }}

{{ t('Ready to search?') }}

{{ t('Start typing to perform a global search across all your data models.') }}

{% endif %} {% endblock %}
{% endblock %}