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

{% block js_import %}
    {{block.super}}
    <script type="text/javascript" src="{{STATIC_URL}}jocondelab/lib/leaflet.js"></script>
{% endblock %}

{% block css_import %}
    {{block.super}}
    <link rel="stylesheet" type="text/css" href="{{STATIC_URL}}jocondelab/lib/leaflet.css" />
{% endblock %}

{% block js_declaration %}
    {{block.super}}
    <script type="text/javascript">
        urls.orange_marker = "{{STATIC_URL}}jocondelab/lib/images/marker-orange.png";
        urls.ajax_geo_coords = "{% url 'ajax_geo_coords' %}";
        urls.ajax_geo_search = "{% url 'ajax_geo_search' %}";
        urls.countries_geo_json = "{{STATIC_URL}}jocondelab/lib/countries.geo.json";
        var countries = {{countries|safe}};
    </script>
    <script type="text/javascript" src="{{STATIC_URL}}jocondelab/js/front-geo.js"></script>
{% endblock %}

{% block css_declaration %}
    {{block.super}}
    <link rel="stylesheet" type="text/css" href="{{STATIC_URL}}jocondelab/css/front-geo.css"></script>
{% endblock %}

{% block title %}JocondeLab &raquo; {% trans 'Mappemonde' %}{% endblock %}

{% block breadcrumbs %}<a href="{% url 'front_geo' %}">{% trans 'Mappemonde' %}</a>{% endblock %}

{% block main %}
            <div class="map-container">
                <div id="map"></div>
                <form class="map-search" action="#">
                    <input class="map-search-input" type="search" placeholder="{% trans 'Rechercher un lieu' %}" />
                </form>
            </div>
            
            <div class="results"></div>
            
            <div class="loading-please-wait"><img src="{{STATIC_URL}}jocondelab/img/loader.gif" /></div>
            <p class="load-more"><a href="#">{% trans 'Afficher plus de résultats' %}</a></p>
            
{% endblock %}
