diff --git a/templates/admin_events.html b/templates/admin_events.html index 9f45799..729330d 100644 --- a/templates/admin_events.html +++ b/templates/admin_events.html @@ -192,8 +192,9 @@ function renderTable() { ? 'FT' : ''; const checked = _selected.has(ev.id) ? 'checked' : ''; - return ` - + return ` + ${_esc(ev.serial)} ${_esc(ts)} ${_fmtPpv(ev.tran_ppv)} @@ -355,5 +356,15 @@ async function flagSelected(value) { } // Initial empty state — let the user choose to load. + +// Refresh the events table when the modal's review form saves — keeps +// the FT badge in sync without a full page reload. +window.addEventListener('sfm-event-review-saved', () => { + if (_events.length) loadEvents(); +}); + +{# Shared event-detail modal — rendered by /static/event-modal.js #} +{% include 'partials/event_detail_modal.html' %} + {% endblock %} diff --git a/templates/sfm.html b/templates/sfm.html index bbb94e2..8f6283f 100644 --- a/templates/sfm.html +++ b/templates/sfm.html @@ -118,6 +118,13 @@ {# Shared event-detail modal — rendered by /static/event-modal.js #} {% include 'partials/event_detail_modal.html' %} +