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

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

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

{% block js_declaration %}
    {{block.super}}
    <script type="text/javascript">
        urls.orange_marker = "{{STATIC_URL}}jocondelab/lib/images/marker-orange.png";
        urls.light_marker = "{{STATIC_URL}}jocondelab/lib/images/marker-light.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 %}{% trans 'Mappemonde' %}{% 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 %}
