From 40b1200f93ce9cf54be885015232dbdd5ddce29e Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Mon, 14 Oct 2024 14:30:59 +0100 Subject: Fixed DSCs and Officers in summary panel Previously these were either hard-coded or missing. There is still a problem with the alignment of the SVG and the text in the CSS grid. The list of officers is based on officers added to the Engagement itself and the effort objects assigned to the engagement - it shows a compound of all. --- .../templates/engagements/engagement_detail.html | 42 ++++++++++++++++------ 1 file changed, 31 insertions(+), 11 deletions(-) (limited to 'engagements/templates') diff --git a/engagements/templates/engagements/engagement_detail.html b/engagements/templates/engagements/engagement_detail.html index 51b0e11..f98191e 100644 --- a/engagements/templates/engagements/engagement_detail.html +++ b/engagements/templates/engagements/engagement_detail.html @@ -102,26 +102,46 @@ -
- - - - - - {{ engagement.dscs|join:", " }} + +
+ +
+ + + +
+ +
+ {% if not engagement.dscs %} +

+ No DSCs. Add Regulation effort. +

+ {% else %} + {{ engagement.dscs|join:", " }} + {% endif %} +
-
+
- {{ engagement.get_officers|join:", " }} +
+ {% if effort %} + {{ engagement.get_officers|join:", " }} + {% else %} +

+ No Inspectors. Add effort. +

+ {% endif %} +
+
-- cgit v1.2.3