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 @@ Description - {{ facility.description }} + {{ facility.description|linebreaksbr }} Opening Hours @@ -125,7 +125,7 @@ function MapReadyCallback() { // add a marker for this facility var marker = L.marker([{{ facility.location.y }}, {{ facility.location.x }}], {icon: {{ facility.facility_type.marker }}}) - marker.bindPopup("{{ facility.name }}

{{ 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.name }} {{ facility.facility_type.name }} {{ facility.team.name }} Team - {{ facility.description|default:"N/A" }} + {{ facility.description|linebreaksbr|default:"N/A" }} {{ facility.location }} {{ facility.feedbacks.count }} / {{ facility.unhandled_feedbacks.count }} @@ -69,7 +69,7 @@ function MapReadyCallback() { var markers = new Array(); {% for facility in facility_list %} {% url "backoffice:facility_detail" camp_slug=facility.camp.slug facility_uuid=facility.uuid as detail %} - marker = L.marker([{{ facility.location.y }}, {{ facility.location.x }}], {icon: {{ facility.facility_type.marker }}}).bindPopup("{{ facility.name }}

{{ facility.description }}

Responsible team: {{ facility.facility_type.responsible_team.name }} Team

{% if request.user.is_authenticated %}

Details

{% 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 %}

Details

{% 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 @@ Description - {{ facility.description }} + {{ facility.description|linebreaksbr }} Location @@ -85,7 +85,7 @@ function MapReadyCallback() { // add a marker for this facility {% url "facilities:facility_feedback" camp_slug=facility.camp.slug facility_type_slug=facility.facility_type.slug facility_uuid=facility.uuid as feedback %} var marker = L.marker([{{ facility.location.y }}, {{ facility.location.x }}], {icon: {{ facility.facility_type.marker }}}) - marker.bindPopup("{{ facility.name }}

{{ facility.description }}

Responsible team: {{ facility.facility_type.responsible_team.name }} Team

{% if request.user.is_authenticated %}

Feedback

{% endif %}").addTo(this); + marker.bindPopup("{{ facility.name }}

{{ facility.description|linebreaksbr }}

Responsible team: {{ facility.facility_type.responsible_team.name }} Team

{% if request.user.is_authenticated %}

Feedback

{% 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 -