From b31d53a3c5099c56f28ad7680321145de91b5879 Mon Sep 17 00:00:00 2001 From: FreneticScribbler Date: Mon, 27 Sep 2021 20:44:20 +0100 Subject: [PATCH] Minor fixes to contact detail stuff on event auth form --- .../partials/client_eventdetails.html | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/RIGS/templates/partials/client_eventdetails.html b/RIGS/templates/partials/client_eventdetails.html index 8e23b873..d920b110 100644 --- a/RIGS/templates/partials/client_eventdetails.html +++ b/RIGS/templates/partials/client_eventdetails.html @@ -1,27 +1,29 @@
+ {% if event.person %}
Contact Details
Person
- {% if event.person %} - {{ event.person.name }} - {% endif %} + {{ event.person.name }}
- + {% if event.person.email %}
Email
{{ event.person.email }}
- + {% endif %} + {% if event.person.phone %}
Phone Number
{{ event.person.phone }}
+ {% endif %}
+ {% endif %} {% if event.organisation %} -
+
Organisation Details
@@ -29,9 +31,10 @@
{{ event.organisation.name }}
- + {% if event.organisation.phone %}
Phone Number
-
{{ object.organisation.phone }}
+
{{ event.organisation.phone }}
+ {% endif %}