From a570c44d752c9cd5e8144864dbae0991b904332a Mon Sep 17 00:00:00 2001 From: Tim Wundenberg Date: Thu, 8 Jan 2026 18:54:18 +0100 Subject: [PATCH] feat(tag): draft for inline editing --- internal/budget/template.templ | 3 +++ internal/tag/db.go | 19 ++++++++++++++-- internal/tag/handler.go | 21 ++++++++++++++++++ internal/tag/service.go | 8 +++++++ internal/tag/template.templ | 40 ++++++++++++++++++++++++++++++++++ 5 files changed, 89 insertions(+), 2 deletions(-) diff --git a/internal/budget/template.templ b/internal/budget/template.templ index 2a59747..ca75080 100644 --- a/internal/budget/template.templ +++ b/internal/budget/template.templ @@ -2,6 +2,7 @@ package budget import ( "spend-sparrow/internal/core" + "spend-sparrow/internal/tag" "spend-sparrow/internal/template/svg" ) @@ -80,6 +81,8 @@ templ edit(budget Budget) { value={ budget.Value / 100 } class="bg-white input col-span-3" /> + + @tag.InlineEditInput("col-span-3")
+ + + Sparen + + + + Tanken + + +
+ +
+
+
+} + +templ inlineEditSearch(tags []Tag) { + for _,tag:=range(tags) { +

{ tag.Name }

+ } +} + templ page(tags []Tag) { @core.Breadcrumb([]string{"Home", "Tag"}, []string{"/", "/tag"})