From cf4ee94db89e697d625106e78831b7e219cd8c03 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Tue, 29 Sep 2020 12:02:36 +0100 Subject: OES engagements on org detail page improved with dates --- .../organisations/organisation_detail.html | 43 +++++++++++++++++----- 1 file changed, 34 insertions(+), 9 deletions(-) (limited to 'ctrack/organisations/templates') diff --git a/ctrack/organisations/templates/organisations/organisation_detail.html b/ctrack/organisations/templates/organisations/organisation_detail.html index c02f0ee..4af5d6f 100644 --- a/ctrack/organisations/templates/organisations/organisation_detail.html +++ b/ctrack/organisations/templates/organisations/organisation_detail.html @@ -19,7 +19,7 @@ -
+
@@ -91,7 +91,7 @@
-
+
@@ -130,7 +130,6 @@
-
@@ -205,12 +204,38 @@ class="btn btn-outline-primary btn-sm float-right">Add new...
- - {% if engagement_events|length > 0 %}{% for event in engagement_events %} - - - - {% endfor %} +
{{ event.type }}{{ event.short_description }}
+ + + + + + + + + + {% if engagement_events|length > 0 %} + {% for event in engagement_events %} + + + + + {% if event.response_date_requested %} + + {% else %} + + {% endif %} + {% if event.response_received %} + + {% else %} + {% if event.response_date_requested %} + + {% else %} + + {% endif %} + {% endif %} + + {% endfor %} {% else %} Add new... -- cgit v1.2.3
DateTypeDescriptionResponse RequestedResponse Due
{{ event.date |date:"D d M Y H:i" }}{{ event.type }}{{ event.short_description }}{{ event.response_date_requested |date:"D d M Y" }}NA{{ event.response_received | date:"D d M Y" }}{{ event.days_to_response_due.days}} {{ event.days_to_response_due.day_str }}NA