From c3e8738936f085b38621cbd6a21c384a3596f12a Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 7 Feb 2017 17:43:12 +0000 Subject: Modification Alison --- static/saclay/css/mobile.css | 46 +++- templates/chimere/blocks/map.html | 469 +++++++++++++++++++------------------- templates/chimere/detail.html | 231 ++++++++++--------- templates/chimere/main_map.html | 272 +++++++++++----------- 4 files changed, 523 insertions(+), 495 deletions(-) diff --git a/static/saclay/css/mobile.css b/static/saclay/css/mobile.css index ee31e25..c21f98a 100644 --- a/static/saclay/css/mobile.css +++ b/static/saclay/css/mobile.css @@ -1,9 +1,37 @@ -/* sample css file for mobile */ - -.cloud, .close_img{ - width:200px; -} - -#detail_content{ - max-height:100px; -} +/* sample css file for mobile */ + +.cloud, .close_img{ + width:200px; +} + +#main-map { + top : 0; +} + +#detail_content{ + max-height:100px; +} + +.map-footer, #footer-panel a, #action-routing, #search-form, #sidebar, #map_menu_step, #map_menu_zoomin, #map_menu_zoomout { + display:none; +} + +#sidebar { + width:300px !important; + top:0px !important; +} + +#map-shadow, #sidebar, #panel { + background-image:none !important; +} + +.sidebar-handler { + width:37px; +} + +#footer-panel { + background-color:#fff !important; + border-right:1px solid #000; + width:275px; + color:#fff; +} diff --git a/templates/chimere/blocks/map.html b/templates/chimere/blocks/map.html index 037d5a8..ebb7403 100644 --- a/templates/chimere/blocks/map.html +++ b/templates/chimere/blocks/map.html @@ -1,233 +1,236 @@ -{% load i18n %} -
- -
-
- Ajax loader -

{% trans "Loading of the map in progress" %}

-
-
-
-

{% trans "Display options" %}

- -
- -
-
+{% load i18n %} +
+ +{% if not MOBILE %} +
+
+ Ajax loader +

{% trans "Loading of the map in progress" %}

+
+
+
+

{% trans "Display options" %}

+ +
+{% endif %} + +
+
diff --git a/templates/chimere/detail.html b/templates/chimere/detail.html index e1a7563..f82a5e6 100644 --- a/templates/chimere/detail.html +++ b/templates/chimere/detail.html @@ -1,114 +1,117 @@ -{% load i18n sanitize chimere_tags %} -{% trans "Close"%} -

{{ marker.name }}

-
- {% if marker.default_pictures or marker.default_pictures or marker.default_multimedia_items%} - - {%endif%} -
- {% if dated %} -

{{marker.start_date|date:"D d M Y"}} - {% if marker.end_date %} - {{marker.end_date|date:"D d M Y"}}

{% endif %} - {% endif %} - {% if marker.description %} -
{{ marker.description|sanitize:"p b i br hr strong em span:style a:href:target ul li ol h1 h2 h3 h4 table td tr th img img:src"|safe}}
- {% endif %} - {% for property in marker.getProperties %}{% if property.value %} - - {%endif%}{% endfor %} - {% if marker.origin %} -
{{marker.origin|safe}}
- {% endif %} - {% if marker.multimedia_items %} - {% trans "Show multimedia gallery" %} - {% endif %} -
-
- -{% if marker.multimedia_items %} - -{% endif %} - +{% load i18n sanitize chimere_tags %} +{% trans "Close"%} +

{{ marker.name }}

+
+ {% if marker.default_pictures or marker.default_pictures or marker.default_multimedia_items%} + + {%endif%} +
+ {% if dated %} +

{{marker.start_date|date:"D d M Y"}} + {% if marker.end_date %} - {{marker.end_date|date:"D d M Y"}}

{% endif %} + {% endif %} + {% if marker.description %} +
{{ marker.description|sanitize:"p b i br hr strong em span:style a:href:target ul li ol h1 h2 h3 h4 table td tr th img img:src"|safe}}
+ {% endif %} + {% for property in marker.getProperties %}{% if property.value %} + + {%endif%}{% endfor %} + {% if marker.origin %} +
{{marker.origin|safe}}
+ {% endif %} + {% if marker.multimedia_items %} + {% trans "Show multimedia gallery" %} + {% endif %} +
+
+ +{% if marker.multimedia_items %} + +{% endif %} + diff --git a/templates/chimere/main_map.html b/templates/chimere/main_map.html index 9dce672..01d9ff5 100644 --- a/templates/chimere/main_map.html +++ b/templates/chimere/main_map.html @@ -1,139 +1,133 @@ -{% extends "chimere/base.html" %} -{% load i18n unlocalize_point chimere_tags %} -{% block extra_head %} -{% head_jquery %} -{% head_chimere %} -{% head_jme %} -{% head_form %} - - - -{% if has_search %} - -{% endif %} - - - -{{ block.super }} -{% endblock %} -{% block message_edit %}{% endblock %} -{% block sidebar %} - - {% comment %} - - {% endcomment %} -
-
-
-
{# dynamic content #} -
-
- - {% routing %} -
-
-
{# dynamic content #} -
-
{# dynamic content #} -
-
{# dynamic content #} -
-
-
- {% comment %} - - {% endcomment %} -{% endblock %} -{% block content %} -
-
- - -
- {% if not itinerary_form %}
- - {% trans "Move on the map" %} - - - {% trans "Draw" %} - -
{% endif %} - - {% if simple %} - {% display_welcome 0 %} - {%else%} - {% display_welcome news_visible %} - {% endif %} - {% display_news news_visible %} - {{ block.super }} -
-
- - {% map_menu %} - {% map 'main-map' %} -
- -{% endblock %} -{% block footer %} - -{% endblock %} +{% extends "chimere/base.html" %} +{% load i18n unlocalize_point chimere_tags %} +{% block extra_head %} +{% head_jquery %} +{% head_chimere %} +{% head_jme %} +{% head_form %} + + + +{% if has_search %} + +{% endif %} + + + +{{ block.super }} +{% endblock %} +{% block message_edit %}{% endblock %} +{% block sidebar %} + +
+ + +
+
+
+
+
{# dynamic content #} +
+
+ + {% routing %} +
+
+
{# dynamic content #} +
+
{# dynamic content #} +
+
{# dynamic content #} +
+
+
+ +{% endblock %} +{% block content %} +
+
+ + +
+ {% if not itinerary_form %}
+ + {% trans "Move on the map" %} + + + {% trans "Draw" %} + +
{% endif %} + + {% if not MOBILE %} + {% if simple %} + {% display_welcome 0 %} + {%else%} + {% display_welcome news_visible %} + {% endif %} + {% display_news news_visible %} + {% endif %} + {{ block.super }} +
+
+ + {% map_menu %} + {% map 'main-map' %} +
+ +{% endblock %} +{% block footer %} + +{% endblock %} -- cgit v1.2.3