fix: hide map on detail pages when no location set

This commit is contained in:
James Graham
2021-04-26 21:04:02 +01:00
parent fa6a4339d8
commit 311a90fe09
5 changed files with 20 additions and 6 deletions

View File

@@ -58,7 +58,10 @@
<hr>
<div id="map" style="height: 800px; width: 100%"></div>
{% if organisation.current_answers.location_set %}
<div id="map" style="height: 800px; width: 100%"></div>
<hr>
{% endif %}
<hr>

View File

@@ -79,9 +79,10 @@
<hr>
<div id="map" style="height: 800px; width: 100%"></div>
<hr>
{% if person.current_answers.location_set %}
<div id="map" style="height: 800px; width: 100%"></div>
<hr>
{% endif %}
{% include 'people/person/includes/relationships_full.html' %}

View File

@@ -55,7 +55,9 @@
<hr>
<div id="map" style="height: 800px; width: 100%"></div>
{% if person.current_answers.location_set %}
<div id="map" style="height: 800px; width: 100%"></div>
<hr>
{% endif %}
<hr>
{% endblock %}