From f10044eac1997537bcdf7699f5b4284aac16f8e2 Mon Sep 17 00:00:00 2001 From: Peter Stone Date: Sun, 1 Feb 2026 14:47:50 -1000 Subject: Improve shopping mode and flatten nav bar Shopping mode: - Click to complete items (deletes user items, hides external items) - Add print button with compact two-column print layout - Fix CSRF token for HTMX requests - Fix input clearing with proper htmx:afterRequest handler - Remove "Quick Add" store option, require valid store Navigation: - Replace dropdown menu with flat nav showing all tabs - Remove unused dropdown JS Tests: - Add TestHandleShoppingModeComplete for user and external items Co-Authored-By: Claude Opus 4.5 --- web/templates/partials/shopping-mode-items.html | 22 +++++++--------------- 1 file changed, 7 insertions(+), 15 deletions(-) (limited to 'web/templates/partials/shopping-mode-items.html') diff --git a/web/templates/partials/shopping-mode-items.html b/web/templates/partials/shopping-mode-items.html index fdf0674..5dad772 100644 --- a/web/templates/partials/shopping-mode-items.html +++ b/web/templates/partials/shopping-mode-items.html @@ -2,28 +2,19 @@
{{if .Items}} {{range .Items}} -
-
- {{if .Checked}} - - - - {{end}} -
+
- {{.Name}} - {{if .Quantity}} - {{.Quantity}} - {{end}} + {{.Name}}{{if .Quantity}} ({{.Quantity}}){{end}}
@@ -35,6 +26,7 @@
{{end}} + {{end}} {{else}}

No items

-- cgit v1.2.3