diff --git a/src/backoffice/templates/facility_detail_backoffice.html b/src/backoffice/templates/facility_detail_backoffice.html index 45bbd5e8..34f6e3b7 100644 --- a/src/backoffice/templates/facility_detail_backoffice.html +++ b/src/backoffice/templates/facility_detail_backoffice.html @@ -38,7 +38,7 @@
{{ facility.description}}
").addTo(this); + marker.bindPopup("{{ facility.name }}{{ facility.description|linebreaksbr }}
").addTo(this); // max zoom since we have only one marker this.setView(marker.getLatLng(), 13); }; diff --git a/src/backoffice/templates/facility_list_backoffice.html b/src/backoffice/templates/facility_list_backoffice.html index 6ceea5df..3dd7da44 100644 --- a/src/backoffice/templates/facility_list_backoffice.html +++ b/src/backoffice/templates/facility_list_backoffice.html @@ -43,7 +43,7 @@ Facilities | BackOffice | {{ block.super }}{{ facility.description }}
Responsible team: {{ facility.facility_type.responsible_team.name }} Team
{% if request.user.is_authenticated %}{% endif %}").addTo(this); + marker = L.marker([{{ facility.location.y }}, {{ facility.location.x }}], {icon: {{ facility.facility_type.marker }}}).bindPopup("{{ facility.name }}{{ facility.description|linebreaksbr }}
Responsible team: {{ facility.facility_type.responsible_team.name }} Team
{% if request.user.is_authenticated %}{% endif %}").addTo(this); markers.push(marker.getLatLng()); {% endfor %} var markerBounds = L.latLngBounds(markers); diff --git a/src/facilities/templates/facility_detail.html b/src/facilities/templates/facility_detail.html index d783fd0d..7ae66074 100644 --- a/src/facilities/templates/facility_detail.html +++ b/src/facilities/templates/facility_detail.html @@ -33,7 +33,7 @@{{ facility.description }}
Responsible team: {{ facility.facility_type.responsible_team.name }} Team
{% if request.user.is_authenticated %}{% endif %}").addTo(this); + marker.bindPopup("{{ facility.name }}{{ facility.description|linebreaksbr }}
Responsible team: {{ facility.facility_type.responsible_team.name }} Team
{% if request.user.is_authenticated %}{% endif %}").addTo(this); // max zoom since we have only one marker this.setView(marker.getLatLng(), 13); }; diff --git a/src/facilities/templates/facility_list.html b/src/facilities/templates/facility_list.html index 997026ed..2418a4d4 100644 --- a/src/facilities/templates/facility_list.html +++ b/src/facilities/templates/facility_list.html @@ -45,7 +45,6 @@ Facilities of type {{ facilitytype }} | {{ block.super }} Back to facility type list -