{% extends "jocondelab/front_base.html" %}
{% load i18n %}

{% block js_declaration %}
    {{block.super}}
    <script type="text/javascript">
        var queryobj = {% if queryobj %}{{queryobj|safe}}{% else %}null{% endif %},
            uri_cache = {% if uri_cache %}{{uri_cache|safe}}{% else %}{}{% endif %};
    </script>
    <script type="text/javascript" src="{{STATIC_URL}}jocondelab/js/front-search.js"></script>
{% endblock %}

{% block title %}JocondeLab &raquo; {% if searchterms_label %}{% blocktrans %}Résultats pour&nbsp;: &laquo;&nbsp;{{searchterms_label}}&nbsp;&raquo;{% endblocktrans %}{% else %}{% trans 'Recherche' %}{% endif %}{% endblock %}

{% block breadcrumbs %}
    {% if searchterms_label %}{% blocktrans %}Résultats pour&nbsp;: &laquo;&nbsp;{{searchterms_label}}&nbsp;&raquo;{% endblocktrans %}{% else %}{% trans 'Recherche' %}{% endif %}
{% endblock %}

{% block header_search %}{% endblock %}

{% block main %}
            
            <form class="big-search-form search-form" action="{% url 'front_search' %}" autocomplete="off" autocapitalize="off" autocorrect="off" spellcheck="false">
                <input class="big-search-input search-input" type="text" name="q" autocomplete="off" autocapitalize="off" autocorrect="off" spellcheck="false"
                       value="{{searchterms_input}}" placeholder="{% trans 'Rechercher' %}" />
            </form>
            <input type="hidden" id="visited_ids" value="{% if request.session.history %}{{ request.session.history|join:',' }}{% endif %}" />
            
            <div class="results">{% include 'jocondelab/partial/wrapped_notice_list.html' %}</div>
            
            <div class="loading-please-wait"><img src="{{STATIC_URL}}jocondelab/img/loader.gif" alt="{% trans 'Chargement en cours' %}" /></div>
            <p class="load-more"><a href="#">{% trans 'Afficher plus de résultats' %}</a></p>
            
{% endblock %}
