diff --git a/internal/view/line_item.templ b/internal/view/line_item.templ index d76187d..0501f14 100644 --- a/internal/view/line_item.templ +++ b/internal/view/line_item.templ @@ -1,33 +1,33 @@ package view templ LineItem(item *ItemViewModel) { - + { item.Item } { item.Quantity } { item.Price } { item.PaymentMethod } { item.PaymentStatus } { item.SubTotal } - - + + if item.PaymentStatus != "Completed" { - + } } templ LineItemForm(item *ItemViewModel) { - +
- - - - - + + + + + { item.SubTotal } - +
diff --git a/internal/view/line_item_templ.go b/internal/view/line_item_templ.go index e1ebcca..c65279f 100644 --- a/internal/view/line_item_templ.go +++ b/internal/view/line_item_templ.go @@ -29,7 +29,7 @@ func LineItem(item *ItemViewModel) templ.Component { templ_7745c5c3_Var1 = templ.NopComponent } ctx = templ.ClearChildren(ctx) - _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("") + _, templ_7745c5c3_Err = templ_7745c5c3_Buffer.WriteString("") if templ_7745c5c3_Err != nil { return templ_7745c5c3_Err } @@ -107,14 +107,14 @@ func LineItem(item *ItemViewModel) 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 }