From 3d7ff435c92cbec5a994ad92464b98b60ed5fca6 Mon Sep 17 00:00:00 2001 From: FreneticScribbler Date: Thu, 15 Oct 2020 14:57:41 +0100 Subject: [PATCH] Display note icon on event detail page --- RIGS/templates/event_detail.html | 5 +++-- RIGS/templates/partials/event_details.html | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/RIGS/templates/event_detail.html b/RIGS/templates/event_detail.html index 2505f7e0..9f4bf086 100644 --- a/RIGS/templates/event_detail.html +++ b/RIGS/templates/event_detail.html @@ -1,5 +1,6 @@ {% extends request.is_ajax|yesno:"base_ajax.html,base_rigs.html" %} {% load linkornone from filters %} +{% load namewithnotes from filters %} {% block title %}{% if object.is_rig %}N{{ object.pk|stringformat:"05d" }}{% else %}{{ object.pk }}{% endif %} | {{object.name}}{% endblock %} @@ -30,7 +31,7 @@
{% if object.person %} - {{ object.person }} + {{ object.person|namewithnotes:'person_detail' }} {% endif %}
@@ -51,7 +52,7 @@
{% if object.organisation %} - {{ object.organisation }} + {{ object.organisation|namewithnotes:'organisation_detail' }} {% endif %}
diff --git a/RIGS/templates/partials/event_details.html b/RIGS/templates/partials/event_details.html index d7450573..457520d3 100644 --- a/RIGS/templates/partials/event_details.html +++ b/RIGS/templates/partials/event_details.html @@ -1,3 +1,4 @@ +{% load namewithnotes from filters %}
Event Info
@@ -6,14 +7,14 @@
{% if object.venue %} - {{ object.venue }} + {{ object.venue|namewithnotes:'venue_detail' }} {% endif %}
{% if object.venue %}
Venue Notes
- {{ object.venue.notes }}{% if object.venue.three_phase_available %}
(Three phase available){%endif%} + {{ object.venue.notes }}{% if object.venue.three_phase_available %}
(Three phase available){%endif%}
{% endif %}