summaryrefslogtreecommitdiff
path: root/templates/chimere/main_map.html
blob: e37ad80b7176c418fb76fd06de6854cfb3943b9b (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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
{% extends "chimere/base.html" %}
{% load i18n static unlocalize_point chimere_tags %}
{% block extra_head %}
{% head_jquery %}
{% head_chimere %}
<script src="https://use.fontawesome.com/28dbea13a1.js"></script>
{% comment %}{% head_jme %}{% endcomment %}
{% head_form %}
<script src="{{ STATIC_URL }}saclay/js/jquery.form.js?ver={{SACLAY_VERSION}}" type="text/javascript"></script>
{% if has_search %}
<script src="{{ STATIC_URL }}saclay/js/search.js?ver={{SACLAY_VERSION}}" type="text/javascript"></script>
<script src="{{ STATIC_URL }}chimere/js/search-autocomplete.js?ver={{VERSION}}" type="text/javascript"></script>{% endif %}

<script type='text/javascript' language='javascript'>
    <!--
    var default_error_message = "{% trans "Error while loading the page... Refresh the page. If the problem persist contact the webmaster." %}";
    var edit_url = "{% url 'edit' %}";
    var edit_event_url = "{% url 'edit-event' %}";
    var edit_route_url = "{% url 'edit-route' %}";
    // -->
</script>
<script src="{{ STATIC_URL }}saclay/js/interface.js?ver={{SACLAY_VERSION}}" type="text/javascript"></script>
{{ block.super }}
{% endblock %}
{% block message_edit %}{% endblock %}
{% block sidebar %}
  <div id="sidebar-container">
    <div class='sidebar-handler' id='sidebar-handler-hide'>
    </div>
    <div id='action-panel'{% if has_search %} class='three'{% endif %}>
        <ul id='map-actions' class='action'>
            <li id='action-categories' class='state-active'>
                <label>{% trans "Categories" %}</label>
            </li>{% if has_search %}<li id='action-search'>
                <label>{% trans "Search" context "menu" %}</label>
            </li>{% endif %}{% if itinerary_form %}
            <li id='action-routing'>
                <label>{% trans "Routing" context "menu"%}</label>
            </li>{% endif %}
        </ul>
        <ul id='edit-actions' class='action'>
            <li id='action-edit-marker' class='state-active'>
                <label>{% trans "Location" %}</label>
            </li>
            <li id='action-edit-route'>
                <label>{% trans "Wander" %}</label>
            </li>
            <li id='action-edit-event'>
                <label>{% trans "Event" %}</label>
            </li>
        </ul>
    </div>
    <div id='panel'>
        <div id='map-panel'>
            <div id='search-box'></div>
            <form action='.' method='post' name='frm_categories' id='frm_categories'>
                <div id='categories'>{# dynamic content #}
                </div>
            </form>
            {% routing %}
        </div>
        <div id='edit-panel'>
            <div id='frm-edit-marker'>{# dynamic content #}
            </div>
            <div id='frm-edit-route'>{# dynamic content #}
            </div>
            <div id='frm-edit-event'>{# dynamic content #}
            </div>
        </div>
    </div>
    <div id='back-categories'>
        <i class="fa fa-arrow-circle-left" aria-hidden="true"></i> <p>REVENIR AUX CATÉGORIES</p>
    </div>
    <div class='footer' id='footer-panel'>
        <p>Disponible en téléchargement sur mobile</p>
        <div id="store">
            <a href="https://play.google.com/store/apps/details?id=com.saclay.saclaycarteouverte"
                target="_blank">
                <img src="{% static 'saclay/images/googleplay.svg' %}"
                     alt="Google play" class="store-image"/>
            </a>
            <a href="https://itunes.apple.com/fr/app/carto/id768621760?mt=8"
               target="_blank">
                <img src="{% static 'saclay/images/appstore.svg' %}"
                     alt="App store" class="store-image"/>
            </a>
        </div>
        <span id='action-project' class='dyn-page'>
            <a href='/dyn/project/'>le projet</a>
        </span> |
        {% if contact_email %}<a href='mailto:{{contact_email}}' id='contactus'>{% trans "contact" %}</a> | {% endif %}
        <a href="{% url 'chimere:extra_page' '' 'legal' %}" id='page-legal' class='dyn-page'>{% trans "terms of service & credits" %}</a>
    </div>
  </div>
{% endblock %}
{% block content %}
    <div id='category_description'>
    </div>
    <script type='text/javascript'>
    $(function(){
        $('#category_description').dialog({'autoOpen':false, width:630,
                                           'dialogClass':'no-titlebar'});
    });
    </script>
    <div class='sidebar-handler' id='sidebar-handler-show'>
    </div>
    <div id='detail' class='ui-widget ui-corner-all'></div>
    {% if not itinerary_form %}<div class='map_button'>
        <a href='#' id='button-move-map' class='toggle-button toggle-button-active' onclick='toggleDrawOff();return false;'>
            {% trans "Move on the map" %}
        </a>
        <a href='#' id='button-draw-map' class='toggle-button toggle-button-inactive' onclick='toggleDrawOn();return false;'>
            {% trans "Draw" %}
        </a>
    </div>{% endif %}
    <a href='#' id='permalink'><span class='fa fa-chimere-action fa-bookmark'></span></a>
    {% if simple %}
        {% display_welcome 0 %}
    {%else%}
        {% display_welcome news_visible %}
    {% endif %}
    {% display_news news_visible %}
    {{ block.super }}
    <div id='map-shadow'></div>
    <div id='edit-button' class="action-button">
        <i class="fa fa-plus" aria-hidden="true"></i></div>
    {% if itinerary_form %}<div id='routing-button' class="action-button">
        <i class="fa fa-map-signs" aria-hidden="true"></i></div>{% endif %}
    <div id='default-message'></div>
    <a href="{% url 'chimere:extra_page' '' 'feedback' %}" id='page-feedback' class='dyn-page'>Suggestions</a>
<script type="text/javascript">
   <!--
   $("#main-map").show();
   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();
       }
   });
   // -->
</script>
    {% map_menu %}
    {% map 'main-map' %}
    <div id='chimere_message'></div>
    <script type='text/javascript'>
    $(function(){$('#chimere_message').dialog({'autoOpen':false,
                      dialogClass:'no-titlebar-simple', position:'right bottom',
                      resizable: false});});
    </script>
{% endblock %}
{% block footer %}
    <p class='map-footer'>{% include "chimere/blocks/footer.html" %}</p>
{% endblock %}