From 3c724c0a25a8cfa34befbbb88bff1236cc88ec20 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Tue, 15 Oct 2024 14:50:52 +0100 Subject: Cleaned up the EP table for an org --- engagements/templates/engagements/ep_org.html | 16 ++-------------- engagements/views.py | 2 +- 2 files changed, 3 insertions(+), 15 deletions(-) (limited to 'engagements') diff --git a/engagements/templates/engagements/ep_org.html b/engagements/templates/engagements/ep_org.html index e6ea423..e4dc8be 100644 --- a/engagements/templates/engagements/ep_org.html +++ b/engagements/templates/engagements/ep_org.html @@ -17,16 +17,13 @@

2023

- +
- - - @@ -38,10 +35,8 @@ - - - diff --git a/engagements/views.py b/engagements/views.py index 86f886d..6d7d4c9 100644 --- a/engagements/views.py +++ b/engagements/views.py @@ -84,7 +84,7 @@ def engagement_detail(request, pk): @login_required def engagement_plan_for(request, orgslug): org = Organisation.objects.get(slug=orgslug) - engagements = Engagement.objects.filter(external_party=org) + engagements = Engagement.objects.filter(external_party=org).order_by("-proposed_start_date") dscs = SubInstrument.objects.filter(itype="DSC").filter(effort__engagement__external_party=org).distinct() context = {"entity": org, "engagements": engagements, "dscs": dscs} return render(request, "engagements/ep_org.html", context) -- cgit v1.2.3
Start Date End Date EngagementEngagement TypeTheme Inspectors InvolvedDSCs Travel Effort Planning and Regulation Effort Completion Status{{ e.proposed_start_date|date:'j M Y' }} {{ e.proposed_end_date|date:'j M Y' }} - {{ e }} + {{ e.friendly_type }} {{ e.friendly_type }}-
    {% for inspector in e.get_officers %} @@ -49,13 +44,6 @@ {% endfor %}
- - TBC TBC Incomplete