From 6d2c72f6d119213c9eb57e79abc579fa8ff4b8a8 Mon Sep 17 00:00:00 2001 From: Konrad du Plessis Date: Thu, 23 Apr 2026 09:56:13 +0200 Subject: [PATCH] JS: pill-popover interactive module + Choices.js CDN in report.html MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Main interactive layer for the inline-filters feature. Appends two blocks to report.html (inside {% block content %}, before the final {% endblock %}): 1. Choices.js CDN + +{% endif %} + +{# === INLINE FILTERS — PILL POPOVER MODULE === #} +{# Scoped IIFE; runs once on DOMContentLoaded. Manages popover open/close, #} +{# dirty state, cross-filter, Apply submission. XSS-safe: createElement + #} +{# textContent only (no innerHTML with user data). Matches CLAUDE.md pattern. #} +{% if user.is_staff or user.is_superuser %} + +{% endif %} {% endblock %}