{% extends "cosinnus/base.html" %} {% load static from staticfiles %} {% load i18n bootstrap3 cosinnus_tags widget_tweaks %} {% block page_title %}{% trans "Search" %}{% endblock %} {% block content_title %}{% trans "Search" %}{% endblock content_title %} {% block main_page %}
  • {% captureas placeholder %}{% trans "Select topics" %}{% endcaptureas %} {% render_field form.topics class+=" w100" placeholder=placeholder %}
{% if user.is_authenticated %} {% comment %} {% if "groups" in request.GET %} {% endcomment %} {% endif %} {% comment %} {% if "groups" in request.GET %} {% endcomment %} {% comment %}
  1. Von
    Bis
{% endcomment %}
{% if query or form.cleaned_data.topics %}

{% if query and form.cleaned_data.topics %} {% blocktrans with start=page.start_index end=page.end_index total=paginator.count %}Showing {{ end }} of {{ total }} results for your query "{{ query }}" with topics:{% endblocktrans %} {% elif query %} {% blocktrans with start=page.start_index end=page.end_index total=paginator.count %}Showing {{ end }} of {{ total }} results for your query "{{ query }}"{% endblocktrans %} {% elif form.cleaned_data.topics %} {% blocktrans with start=page.start_index end=page.end_index total=paginator.count %}Showing {{ end }} of {{ total }} results with topics:{% endblocktrans %} {% endif %} {% if form.cleaned_data.topics %} {% trans "or" as or_seperator %} {% render_cosinnus_topics form.cleaned_data.topics or_seperator %} {% endif %}

{% for result in page.object_list %} {{ result.rendered|safe }} {% empty %} {% captureas empty_message %}{% trans "We could not find any results matching your search query." %}{% endcaptureas %} {% include 'cosinnus/common/empty_button.html' with message=empty_message %} {% endfor %} {% if page.has_previous or page.has_next %}
{% endif %} {% else %} {% captureas empty_message %}{% trans "Enter one or more search terms or select a topic to search." %}{% endcaptureas %} {% include 'cosinnus/common/empty_button.html' with message=empty_message %} {% endif %}
{% endblock main_page %}