From d90333e0fd96eb05e96a9de94f515f60a5844f80 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Fri, 23 Oct 2020 11:53:15 +0100 Subject: improved tables in org detail --- .../organisations/organisation_detail.html | 54 +++++++++++++++------- .../register/singledatetimeevent_update_form.html | 2 +- 2 files changed, 39 insertions(+), 17 deletions(-) diff --git a/ctrack/organisations/templates/organisations/organisation_detail.html b/ctrack/organisations/templates/organisations/organisation_detail.html index 6e2c1c3..fbe630a 100644 --- a/ctrack/organisations/templates/organisations/organisation_detail.html +++ b/ctrack/organisations/templates/organisations/organisation_detail.html @@ -130,32 +130,33 @@
- - - - - - + + + + + + + {% for event in single_datetime_events %} - - + - - - + - + + {% endfor %} @@ -200,22 +209,35 @@
TypeDateDescriptionParticipantsComments
TypeDateDescriptionParticipantsCommentsAction
+
{{ 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 }}   @@ -164,7 +165,15 @@ NA {% endif %} {{ event.comments }}{{ event.comments }}
+ {% if event.document_link %} + Link + {% endif %} +
Edit +
- + + - + + {% for event in notes %} - + {% if event.user.name %} + + {% else %} + + {% endif %} - + + {% endfor %} diff --git a/ctrack/register/templates/register/singledatetimeevent_update_form.html b/ctrack/register/templates/register/singledatetimeevent_update_form.html index 646ea3b..006981b 100644 --- a/ctrack/register/templates/register/singledatetimeevent_update_form.html +++ b/ctrack/register/templates/register/singledatetimeevent_update_form.html @@ -4,7 +4,7 @@ {% load crispy_forms_tags %} {% block form %} -

Edit event {{ object }}

+

Update event: {{ object.short_description }}

Simple events are emails, phone calls, basic meetings, notes, deadlines, etc. If you arrived at this page from an organisation's page, you are able to select participants in the event from that organisation.

-- cgit v1.2.3
CreatedCreatedUser DescriptionCommentsCommentsAction
+ {{ event.created_date|date:"j M Y" }} {% if event.private %} PRIVATE {% endif %} {{ event.user.name }}{{ event.user.username }}{{ event.short_description }}{{ event.comments }}{{ event.comments }}
+ {% if event.document_link %} + Link + {% endif %} +
Edit +