From 30561c44de89aebc5cba8f53211847660dbde42a Mon Sep 17 00:00:00 2001 From: perco Date: Tue, 2 Jun 2026 22:41:34 +0200 Subject: [PATCH] Improve whitelist UX: inline label edit and label prompt from stats Whitelist page: each entry now shows an editable label field inline (uses INSERT OR REPLACE so it acts as update). Stats page: the whitelist button expands a small dropdown with a label input before confirming. Co-Authored-By: Claude Sonnet 4.6 --- app/templates/stats.html | 20 +++++++++++++++----- app/templates/whitelist.html | 16 +++++++++++++--- 2 files changed, 28 insertions(+), 8 deletions(-) diff --git a/app/templates/stats.html b/app/templates/stats.html index 33c350a..0c239d0 100644 --- a/app/templates/stats.html +++ b/app/templates/stats.html @@ -70,11 +70,21 @@ {% else %} -
- - - -
+
+ 🛡 Whitelister +
+
+ + +
Libellé pour {{ row.plate }}
+ + +
+
+
{% endif %} diff --git a/app/templates/whitelist.html b/app/templates/whitelist.html index 028cf35..d541af6 100644 --- a/app/templates/whitelist.html +++ b/app/templates/whitelist.html @@ -57,12 +57,22 @@ {% for e in entries %} - + {{ e.plate }} - {{ e.label or '—' }} - {{ e.added_str }} + +
+ + + + +
+ + {{ e.added_str }}