blob: 25d99c44143289b2a98a3ac029f4d8ed87b7c907 (
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
|
{% 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>{% endif %}
{{ block.super }}
{% endblock %}
{% block message_edit %}{% endblock %}
{% block sidebar %}
<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>
{%comment%}
<div id='utils-div' class='panel panel-default'>
<div class='panel-body' class="btn-group-vertical">
{% routing %}
{% display_welcome %}
{% display_news news_visible %}
<button id='permalink' type="button" class="btn btn-default"></button>
<button id='simple_button' type='button' class="btn btn-default" href='{% url chimere:simple_index area_name_slash %}'>{% trans "Simple map" %}</button>
<div id='permalink' class='ui-widget ui-button ui-state-default ui-corner-all'></div>
<a id='simple_button' class="btn btn-default" href='{% url chimere:simple_index area_name_slash %}'>{% trans "Simple map" %}</a>
</div>
</div>
{%endcomment%}
<div id='detail'></div>
{% endblock %}
{% block search_box %} {% endblock %}
{% block content %}
{{block.super}}
<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 %}
|