From 34c4c0d83043c089b13e67671357d5535c17cb66 Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 29 Dec 2025 10:25:27 +0000 Subject: [PATCH] Add notes display and tooltip support in exam CIDs template --- generic/templates/generic/exam_cids.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/generic/templates/generic/exam_cids.html b/generic/templates/generic/exam_cids.html index 102e1777..e12ae5f7 100644 --- a/generic/templates/generic/exam_cids.html +++ b/generic/templates/generic/exam_cids.html @@ -39,6 +39,9 @@
{{ cid.name }}
Email: {{ cid.email }}
+ {% if cid.notes %} +
Notes: {{ cid.notes|truncatechars:120 }}
+ {% endif %} @@ -171,6 +174,11 @@ }); } + // enable Bootstrap tooltips for notes + document.querySelectorAll('[data-bs-toggle="tooltip"]').forEach(function(el){ + try{ new bootstrap.Tooltip(el); }catch(e){/* ignore if bootstrap not available */} + }); + const userFilter = document.getElementById('user-filter'); if(userFilter){ userFilter.addEventListener('input', function(){ @@ -188,5 +196,6 @@ .cid-name { margin-top: 0.25rem; } .cid-link { font-size: 1.05rem; } .submitted { color: green; } + .cid-notes { font-style: italic; color: #6c757d; } {% endblock %} \ No newline at end of file