summaryrefslogtreecommitdiff
path: root/chimere/templates/chimere/main_map.html
blob: e215c5620ce31db03c889a3a081bed859ac96ef8 (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
{% extends "chimere/base.html" %}
{% load i18n unlocalize_point chimere_tags %}
{% block extra_head %}
{% head_jquery %}
{% head_chimere %}
{% comment %}{% head_jme %}{% endcomment %}
<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 %}
{% display_news %}
    <div id='panel' class='navbar-default'>
      <form id="frm_categories"><div id='categories'></div></form>
      <div id='search-box' class='ui-widget ui-corner-all'></div>
    </div>
    <div id='category_description'>
    </div>
    <script type='text/javascript'>
    $(function(){$('#category_description').dialog({'autoOpen':false});});
    </script>
    <div id='detail'></div>
{% endblock %}
{% block search_box %} {% endblock %}
{% block content %}
    {{block.super}}
    {% map_menu %}
    {% map 'main-map' %}
    <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(){
        if (has_search){
            load_search_box();
        }
        {%if news_visible %}$('#news').modal();{% endif %}
    });
    </script>
{% endblock %}
{% block footer %}
    <p class='map-footer'>{% include "chimere/blocks/footer.html" %}</p>
{% endblock %}