summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2012-10-15 19:21:44 +0200
committerÉtienne Loks <etienne.loks@peacefrogs.net>2012-10-15 19:21:44 +0200
commitc2ee0e6a039888d2df50f649ca53d8191bc4b52d (patch)
tree77d68b6f08e7e882155952b6e4c90a032406afc5
parent8ad888adda0227aa2c053017093138b0b001e146 (diff)
downloadChimère - projet Saclay-c2ee0e6a039888d2df50f649ca53d8191bc4b52d.tar.bz2
Chimère - projet Saclay-c2ee0e6a039888d2df50f649ca53d8191bc4b52d.zip
Routing: adapt to itinerary warns
-rw-r--r--settings.py2
-rw-r--r--templates/chimere/main_map.html11
2 files changed, 7 insertions, 6 deletions
diff --git a/settings.py b/settings.py
index 1fdee6b..d6d95b8 100644
--- a/settings.py
+++ b/settings.py
@@ -106,6 +106,8 @@ CHIMERE_SHORT_DESC_LENGTH = 400
CHIMERE_MODIF_EMAIL = _(u"""Hello, I would like to propose you a modification about this item: """)
+CHIMERE_ROUTING_WARN_MESSAGE = _(u"""This itinerary has dangerous passages. You should change it.""")
+
CHIMERE_CSV_ENCODING = 'ISO-8859-1'
ADMINS = (
diff --git a/templates/chimere/main_map.html b/templates/chimere/main_map.html
index 5336f1e..cabc09b 100644
--- a/templates/chimere/main_map.html
+++ b/templates/chimere/main_map.html
@@ -80,12 +80,7 @@
&gt;
</div>
<div id='detail' class='ui-widget ui-corner-all'></div>
- <div id='utils-div' class='ui-widget ui-state-default ui-corner-all'>
- {% if areas_visible %}
- {% display_areas %}
- {% endif %}
- <div id='permalink'></div>
- </div>
+ <div id='permalink' style='display:none'></div>
{% display_welcome %}
{% display_news news_visible %}
{{block.super}}
@@ -96,6 +91,10 @@
</script>
{% map_menu %}
{% map 'main-map' %}
+ <div id='chimere_message'></div>
+ <script type='text/javascript'>
+ $(function(){$('#chimere_message').dialog({'autoOpen':false});});
+ </script>
{% endblock %}
{% block footer %}
<p class='map-footer'>{% include "chimere/blocks/footer.html" %}</p>