From 5688e9b1c79ff45a8867891205791a3ffcc6b91d Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Fri, 23 Oct 2020 16:52:28 +0100 Subject: improved events tables in org detail --- .../organisations/organisation_detail.html | 91 ++++++++++++++-------- ctrack/register/models.py | 1 + 2 files changed, 59 insertions(+), 33 deletions(-) diff --git a/ctrack/organisations/templates/organisations/organisation_detail.html b/ctrack/organisations/templates/organisations/organisation_detail.html index 65a9c03..f85506c 100644 --- a/ctrack/organisations/templates/organisations/organisation_detail.html +++ b/ctrack/organisations/templates/organisations/organisation_detail.html @@ -29,7 +29,7 @@
-{#
Company Information
#} + {#
Company Information
#}
{% for p in people %} @@ -142,6 +142,13 @@
Engagement Events
+

Record here official conversations with the organisation. Any events marked as not private + are visible to all users of the system and this should be the default for most events to ensure + visibility across the team. Sensitive conversations should not be detailed here. +

+

Please include a summary in the comments + box but provide a link in the URL field on the form to a more detailed summary on TiME. Links + included in this way will show upin the comments box in this summary table.

@@ -177,39 +184,41 @@ New email +  [Help]
+
- +
- - - - - - - - + + + + + + + + {% for event in single_datetime_events %} - - + - - - + - - - + {% else %} + + {% endif %} + @@ -262,42 +283,46 @@
-
TypeDateDescriptionParticipantsCommentsResponseAction
TypeDateDescriptionParticipantsCommentsResponseAction
+
{{ event.type_descriptor }} {% if event.private %} PRIVATE {% endif %} + {% if event.date %} {{ event.date|date:"j M Y G:H" }} {% else %} NA {% endif %} {{ event.short_description }} + {{ event.short_description }} {% if event.participants %} {% for person in event.participants.all %} {{ person }}   @@ -218,15 +227,27 @@ NA {% endif %} {{ event.comments }}
+
+ {% if event.comments %} + {{ event.comments }} + {% else %} + NA + {% endif %} +
{% if event.document_link %} [URL] {% endif %}
- {{ event.requested_response_date }} - + {{ event.requested_response_date }} + +   + Edit
+ {% if notes%} +
- - - - - - + + + + + + {% for event in notes %} - - + {% if event.user.name %} - + {% else %} {% endif %} - - + - {% endfor %}
CreatedUserDescriptionCommentsAction
CreatedUserDescriptionCommentsAction
+
{{ event.created_date|date:"j M Y" }} {% if event.private %} PRIVATE {% endif %} {{ event.user.name }}{{ event.user.name }}{{ event.user.username }}{{ event.short_description }}{{ event.comments }}
+
{{ event.short_description }}{{ event.comments }}
{% if event.document_link %} [URL] {% endif %}
Edit + Edit
+ {% else %} +

No notes.

+ {% endif %}
diff --git a/ctrack/register/models.py b/ctrack/register/models.py index 375521d..a36fb9a 100644 --- a/ctrack/register/models.py +++ b/ctrack/register/models.py @@ -78,6 +78,7 @@ class EventBase(AuditableEventBase): blank=True, null=True, help_text="Use this to link to documents on TiME/Sharepoint or elsewhere.", + verbose_name="URL", ) comments = models.TextField( max_length=1000, -- cgit v1.2.3