From 73b28b1e22e2fc081e71e9cd16a4fc03db187e21 Mon Sep 17 00:00:00 2001 From: Ruidy Date: Fri, 15 Nov 2024 16:09:18 +0100 Subject: [PATCH] booking table fd --- internal/view/bookings_list.templ | 29 ++++++++++++++-------------- internal/view/bookings_list_templ.go | 6 ++---- internal/view/layout/base.templ | 2 +- internal/view/layout/base_templ.go | 2 +- 4 files changed, 18 insertions(+), 21 deletions(-) diff --git a/internal/view/bookings_list.templ b/internal/view/bookings_list.templ index 75a8dc9..1bd0da1 100644 --- a/internal/view/bookings_list.templ +++ b/internal/view/bookings_list.templ @@ -1,15 +1,13 @@ package view -import ( - "github.com/rjNemo/rentease/internal/view/layout" -) +import "github.com/rjNemo/rentease/internal/view/layout" templ ListBookings(bookings []*ListBookingsViewModel) { @layout.BaseLayout() { -
-
-

Bookings

-

Overview of the activity

+
+
+

Bookings

+

Overview of the activity

-
- +
+
- - - - - - + + + + + + @BookingLines(bookings) diff --git a/internal/view/bookings_list_templ.go b/internal/view/bookings_list_templ.go index f7ee374..a050583 100644 --- a/internal/view/bookings_list_templ.go +++ b/internal/view/bookings_list_templ.go @@ -8,9 +8,7 @@ package view import "github.com/a-h/templ" import templruntime "github.com/a-h/templ/runtime" -import ( - "github.com/rjNemo/rentease/internal/view/layout" -) +import "github.com/rjNemo/rentease/internal/view/layout" func ListBookings(bookings []*ListBookingsViewModel) templ.Component { return templruntime.GeneratedTemplate(func(templ_7745c5c3_Input templruntime.GeneratedComponentInput) (templ_7745c5c3_Err error) { @@ -45,7 +43,7 @@ func ListBookings(bookings []*ListBookingsViewModel) templ.Component { }() } ctx = templ.InitializeContext(ctx) - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("

Bookings

Overview of the activity

IDNameTotal (€)FromToPlatformIDNameTotal (€)FromToPlatform
") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("

Bookings

Overview of the activity

IDNameTotal (€)FromToPlatform
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } diff --git a/internal/view/layout/base.templ b/internal/view/layout/base.templ index f201345..79a2f91 100644 --- a/internal/view/layout/base.templ +++ b/internal/view/layout/base.templ @@ -8,7 +8,7 @@ templ BaseLayout() { @head() @navbar() -
+
{ children... }
@footer() diff --git a/internal/view/layout/base_templ.go b/internal/view/layout/base_templ.go index aaf2805..6185960 100644 --- a/internal/view/layout/base_templ.go +++ b/internal/view/layout/base_templ.go @@ -47,7 +47,7 @@ func BaseLayout() templ.Component { if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("
") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err }
IDNameTotal (€)FromToPlatform