1 {% extends 'panikdb/base.html' %}
4 {% block bodyID %}Search{% endblock %}
5 {% block title %}Recherche{% endblock %}
7 <div class="padded search">
8 <form method="get" action="." class="big center" id="search-form">
9 {{ form.as_table }}<button class="icon-search"></button>
13 {% if facets.fields.categories %}
14 <ul class="custom padded">
15 {# Provide only the top 5 categories #}
16 {% for category in facets.fields.categories|slice:":5" %}
18 {% if category.0 in selected_categories %}
19 <a class="check icon-check count-{{ category.1 }}" href="{{ request.get_full_path|remove_category_facet:category.0 }}">
20 {{ category.0 }} | {{ category.1 }}
23 <a class="check icon-check-empty count-{{ category.1 }}" href="{{ request.get_full_path|append_category_facet:category.0 }}">{{ category.0 }} | {{ category.1 }}</a></span>
31 {% if facets.fields.tags %}
32 <ul class="tag-facets custom padded">
33 {# Provide only the top 5 tags #}
34 {% for tag in facets.fields.tags|slice:":20" %}
36 {% if tag.0 in selected_tags %}
37 <a class="check icon-check count-{{ tag.1 }}" href="{{ request.get_full_path|remove_tag_facet:tag.0 }}">
38 {{ tag.0 }} | {{ tag.1 }}
41 <a class="check icon-check-empty count-{{ tag.1 }}" href="{{ request.get_full_path|append_tag_facet:tag.0 }}">{{ tag.0 }} | {{ tag.1 }}</a>
58 {% if not page.object_list %}
59 <div class="big error padded center">Sorry, no result with your query!</div>
61 {% if page.has_previous %}
62 <div class="previous-page cf">
63 <a class="button big left" href="?q={{ query }}&page={{ page.previous_page_number }}">« Résultats précédénts</a>
67 <ul id="search-results" class="list columns padded cf">
70 {% for result in page.object_list %}
71 {% if result.object.title %}
73 {% search_result_template result %}
80 {% if page.has_next %}
81 <div class="next-page cf">
82 <a class="button big right" href="?q={{ query }}&page={{ page.next_page_number }}">Résultats suivants »</a>