+ {% if not visits %}
+ This encampment has never been visited
+ {% else %}
{% with visits|first as most_recent %}
{% if most_recent %}
+
{% endif %}
{% else %}
- This encampment has never been visited
- {% endif %}
+ {% endif %}
{% endwith %}
diff --git a/templates/base.html b/templates/base.html
index da28573..3f5ecf9 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -695,9 +695,15 @@
}
.previous-visit {
- display: flex;
+ display: inline-flex;
}
+ summary:focus {
+ outline: none;
+ color: #063;
+ }
+
+
.visits-content {
width: 100%;
}
Most Recent Visit
+
- {% for visit in visits|slice:"1:" %}
- {% if forloop.first %}
+ {% endif %}
Previous Visits
- {% endif %}
+
+ {% for visit in visits|slice:"1:" %}
+
+
{% endfor %}
+
+
+
{{ visit.date }}
@@ -141,9 +146,84 @@ Notes / next steps
{{ visit.performed_by }}
+
+ {{ visit.date }}
@@ -141,9 +146,84 @@ Notes / next steps
{{ visit.performed_by }}
+
+
+ {% if visit.supplies_delivered or visit.food_delivered %}
+ Status
+ +
+
+ Type of setup
+{{ visit.type_of_setup }}
+
+
+ Living here
+{{ visit.get_occupancy_display }}
+
+
+ Talked to
+{{ visit.talked_to }}
+
+
+ {% endif %}
+ Deliveries
+ + {% if visit.supplies_delivered %} +
+
+ {% endif %}
+ {% if visit.food_delivered %}
+ Supplies Delivered
+{{ visit.supplies_delivered }}
+
+
+ {% endif %}
+ Food Delivered
+{{ visit.food_delivered }}
+
+
+ {% if visit.needs or visit.notes %}
+ Covid
+ +
+
+ Education
+{{ visit.education_provided }}
+
+
+ Assessed
+{{ visit.assessed }}
+
+
+ Asymptomatic
+{{ visit.assessed_asymptomatic }}
+
+
+ {% endif %}
+
+ Actions
+ + {% if visit.needs %} +
+
+ {% endif %}
+ {% if visit.notes %}
+ Outstanding Needs
+{{ visit.needs }}
+
+
+ {% endif %}
+ Notes / next steps
+{{ visit.notes }}
+