{% extends "base.html" %}

{% load i18n %}

{% block title %}{{block.super}} &gt; {% trans "Recherche par liste de completion" %}{% endblock %}

{% block css_import %}
{{block.super}}
        <link rel="stylesheet" type="text/css" href="{{STATIC_URL}}hdalab/lib/leaflet/leaflet.css" />
        <link rel="stylesheet" type="text/css" href="{{STATIC_URL}}hdalab/css/ui-lightness/jquery-ui-1.8.16.custom.css" />
        <link rel="stylesheet" type="text/css" href="{{STATIC_URL}}hdalab/css/completion.css" />
{% endblock %}

{% block js_import %}
{{block.super}}
        <script src="{{STATIC_URL}}hdalab/lib/raphael-min.js"></script>
        <script src="{{STATIC_URL}}hdalab/lib/underscore-min.js"></script>
        <script src="{{STATIC_URL}}hdalab/lib/jquery-ui-1.8.16.custom.min.js"></script>

        <script src="{% url jsi18n 'hdalab' %}"></script>
        <script src="{{STATIC_URL}}hdalab/js/completion.js?v=130829"></script>
        
        <script type="text/javascript">
        gomNs.languageCode = '{{LANGUAGE_CODE}}';
        gomNs.urls = {
            'contentsbytag': "{% url contentsbytag %}",
            'tag_search': "{% url tag_search %}"
        };
        </script>
{% endblock %}

{% block completion_actif %}actif{% endblock %}

{% block main_content %}
        <div id="titlebar">
            <div id="titleleft">
                <h2 id="hdatitle">{% trans "Recherche par liste de completion" %}&nbsp;</h2>
            </div>
            <div id="titleright">
                <div id='langselect'>
                    <form action="{% url django.views.i18n.set_language %}" method="post" id="lang_form">
                    {% csrf_token %}
                        <!--input name="next" type="hidden" value="" /-->
                        {% get_language_info_list for LANGUAGES as languages %}
                        {% for language in languages %}
                            <input type="submit" name="language" class="langbutton{% if language.code == LANGUAGE_CODE %} selected{% endif %}" style="background-image: url({{STATIC_URL}}hdalab/img/flag_{{ language.code }}.png)" value="{{ language.code }}" title="{{ language.name_local }}" />
                        {% endfor %}
                    </form>
                </div>
            </div>
        </div>
        <div id="columns">
            <div id="leftcol">
                <div class="bloc" id="bloc_taginfo">
                    <div class="barrebloc">
                        <h2>{% trans "Rechercher un tag" %}</h2>
                    </div>
                    <div class="corpsbloc" id="taginfo">
                        <form id="tagform">
                            <input id="tagsearch" placeholder="{% trans "Rechercher un tag" %}" />
                        </form>
                        <div class="wpinfo">
                            
                        </div>
                    </div>
                </div>
                <div class="bloc" id="bloc_translationinfo">
                {% trans "translation_info" %}
                </div>
            </div>
            <div id="rightcol">
                <div class="bloc" id="bloc_notices">
                    <div class="barrebloc">
                        <h2>{% trans "Resultats de recherche" %}</h2>
                    </div>
                    <div class="corpsbloc">
                        <div id="contentcount"></div>
                        <div id="contents"></div>
                    </div>
                </div>
            </div>
        </div>
    </div>

{% endblock %}
