diff --git a/internal/view/booking_lines.templ b/internal/view/booking_lines.templ index f67dc3a..090d356 100644 --- a/internal/view/booking_lines.templ +++ b/internal/view/booking_lines.templ @@ -3,28 +3,45 @@ package view import () templ BookingLines(bookings []*ListBookingsViewModel) { - + } diff --git a/internal/view/booking_lines_templ.go b/internal/view/booking_lines_templ.go index eca80ad..73517d3 100644 --- a/internal/view/booking_lines_templ.go +++ b/internal/view/booking_lines_templ.go @@ -31,114 +31,132 @@ func BookingLines(bookings []*ListBookingsViewModel) templ.Component { templ_7745c5c3_Var1 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } diff --git a/internal/view/bookings_list.templ b/internal/view/bookings_list.templ index 38e768a..557468a 100644 --- a/internal/view/bookings_list.templ +++ b/internal/view/bookings_list.templ @@ -14,26 +14,12 @@ templ ListBookings(bookings []*ListBookingsViewModel) { name="search" placeholder="Search bookings by name…" hx-get="/bookings" - hx-target="tbody" + hx-target="#booking-cards" hx-swap="outerHTML" hx-trigger="keyup changed delay:500ms" class="input input-bordered input-primary w-full md:w-96" /> -
- - - - - - - - - - - - @BookingLines(bookings) -
IDNameTotal (€)FromToPlatform
-
+ @BookingLines(bookings) } } diff --git a/internal/view/bookings_list_templ.go b/internal/view/bookings_list_templ.go index 347d50f..05c55ad 100644 --- a/internal/view/bookings_list_templ.go +++ b/internal/view/bookings_list_templ.go @@ -43,7 +43,7 @@ func ListBookings(bookings []*ListBookingsViewModel) templ.Component { }() } ctx = templ.InitializeContext(ctx) - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "

Bookings

Overview of the activity

") + templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 1, "

Bookings

Overview of the activity

") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -51,10 +51,6 @@ func ListBookings(bookings []*ListBookingsViewModel) templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - templ_7745c5c3_Err = templruntime.WriteString(templ_7745c5c3_Buffer, 2, "
IDNameTotal (€)FromToPlatform
") - if templ_7745c5c3_Err != nil { - return templ_7745c5c3_Err - } return nil }) templ_7745c5c3_Err = layout.BaseLayout().Render(templ.WithChildren(ctx, templ_7745c5c3_Var2), templ_7745c5c3_Buffer)