From 08f0eec88576ee6940666fded3154a0dfad58d05 Mon Sep 17 00:00:00 2001 From: Jonathan Snook Date: Mon, 8 Jun 2020 20:59:58 -0400 Subject: [PATCH] Rearranged visits list to display multiple --- .../reporting/encampment_detail.html | 90 +++++++++++++++++-- templates/base.html | 8 +- 2 files changed, 92 insertions(+), 6 deletions(-) diff --git a/apps/reporting/templates/reporting/encampment_detail.html b/apps/reporting/templates/reporting/encampment_detail.html index f2c601c..87bdbd3 100644 --- a/apps/reporting/templates/reporting/encampment_detail.html +++ b/apps/reporting/templates/reporting/encampment_detail.html @@ -33,12 +33,16 @@

{{ encampment.name }}

+ {% if not visits %} + This encampment has never been visited + {% else %} {% with visits|first as most_recent %} {% if most_recent %}
Most Recent Visit
+
{{ most_recent.date }}
@@ -120,20 +124,21 @@

Notes / next steps

{% endif %}
+
{% else %} - This encampment has never been visited - {% endif %} + {% endif %} {% endwith %}
+ {% endif %}
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%; }