summaryrefslogtreecommitdiff
path: root/chimere/templates/chimere/main_map.html
blob: 45423baaf39d8a0306c30fc9049d66ea21f9d16e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{% extends "chimere/base.html" %}
{% load i18n unlocalize_point chimere_tags %}
{% block extra_head %}
{% head_jquery %}
{% head_chimere %}
{% head_jme %}
<script src="{{ STATIC_URL }}chimere/js/jquery.chimere.js" type="text/javascript"></script>
{% if has_search %}
<script src="{{ STATIC_URL }}chimere/js/search.js" type="text/javascript"></script>
<script src="{{ STATIC_URL }}chimere/js/search-autocomplete.js" type="text/javascript"></script>{% endif %}
{{ block.super }}
{% endblock %}
{% block message_edit %}{% endblock %}
{% block sidebar %}
    <div id='panel' class='draggable ui-widget ui-corner-all'>
        <h2 class='ui-widget ui-state-default ui-corner-all ui-widget-header'>{% trans "Categories"%}</h2>
        <form method='post' name='frm_categories' id='frm_categories'>
            <div id='categories'>
            {# Categories are displayed in JS #}
            </div>
        </form>
    </div>

    <div id='category_description'>
    </div>
    <script type='text/javascript'>
    $(function(){$('#category_description').dialog({'autoOpen':false});});
    </script>

    <div id='utils-div' class='ui-widget ui-state-default ui-corner-all'>
    {% if areas_visible %}
        {% display_areas %}
    {% endif %}
        {% routing %}
        {% display_welcome %}
        {% display_news news_visible %}
        <div id='permalink' class='ui-widget ui-button ui-state-default ui-corner-all'></div>
        <a id='simple_button' class='ui-widget ui-button ui-state-default ui-corner-all' href='{% url chimere:simple_index area_name_slash %}'>{% trans "Simple map" %}</a>
    </div>
    <div id='detail' class='ui-widget ui-corner-all'></div>
{% endblock %}
{% block search_box %}
<div id='search-box' class='ui-widget ui-corner-all'>
</div>
{% endblock %}
{% block content %}
    {{block.super}}
    <div id='popup'></div>
    <div id='layerSwitcher'></div>
    <div id='main-map'></div>
<script type="text/javascript">
   $("#main-map").show();
</script>
    {% map_menu %}
    {% map 'main-map' %}
    <div id='chimere_message'></div>
    <script type='text/javascript'>
    var has_search = {% if has_search %}true{% else %}false{% endif %};
    // array to keep trace of already displayed items
    var search_result = new Array();
    var search_url = "/search/";
    $(function(){
        $('#chimere_message').dialog({'autoOpen':false});
        if (has_search){
            load_search_box();
        }
    });
    </script>
{% endblock %}
{% block footer %}
    <p class='map-footer'>{% include "chimere/blocks/footer.html" %}</p>
{% endblock %}