From b5c3a9468ffff07b09067b7d06fdcafaec2d23cf Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Thu, 8 Oct 2020 15:15:08 +0100 Subject: using list-group-items instead of table --- ctrack/caf/templates/caf/caf_detail.html | 43 +++++++++++++------------------- 1 file changed, 18 insertions(+), 25 deletions(-) diff --git a/ctrack/caf/templates/caf/caf_detail.html b/ctrack/caf/templates/caf/caf_detail.html index e3dae9f..485fdf0 100644 --- a/ctrack/caf/templates/caf/caf_detail.html +++ b/ctrack/caf/templates/caf/caf_detail.html @@ -138,32 +138,25 @@
CAF History Add - new...
-
- - - - - - - - - - - {% for event in object.get_events %} - - - - - - - {% endfor %} - - + new... + - - -
DateEventInspectorComments
{{ event.date|date:"j F Y" }}{{ event.type }}{{ event.user }}{{ event.comments }}
+
+ {% for event in object.get_events %} +
+
+

{{ event.date|date:"j F Y" }}

+ {{ event.type }} +
+ {% if event.comments%} +

{{ event.comments }}
+ (Inspector: {{ event.user }}) +

+ {% else %} +

No comments made.

+ {% endif %} +
+ {% endfor %}
-- cgit v1.2.3