{% extends "base.html" %} {% load i18n plmapp_tags highlight %} {# search page #} {% block css %} {% endblock %} {% block leftcolumn %} {% endblock %} {% block content %}
{{ form.q }}
{{ form.type }} {{ form.search_official }}

{% trans "Type" %}

{% if subtypes %}
    {% for level, cls, cls_name in subtypes %}
  • {{ cls_name }}
  • {% endfor %}
{% endif %} {% if type == "all" or type == "Part" or type == "Document" %}
{% endif %}
{% if query %}

{% trans "Results" %}

{% for result in page.object_list %} {% if forloop.first %}

{% trans "Results" %} {% blocktrans with page.start_index as start and page.end_index as end and paginator.count as total %} ({{start}} - {{end}} on {{total}}) {% endblocktrans %}

    {% endif %} {% include "search/result.html" %} {% if forloop.last %}
{% endif %} {% empty %}

{% trans "No result matching given query" %}

{% if suggestion.strip %}

{% trans "You may try:"%} {{ suggestion}}

{% endif %} {% endfor %} {% show_pages_bar page request %} {% else %} {# Show some example queries to run, maybe query syntax, something else? #} {% endif %}
{% endblock %}