rentease/internal/views/line_item.templ
Ruidy 9d3b0fec6d
use htmx to add line items
eliminates a db round trip
2024-02-09 12:06:29 +01:00

17 lines
331 B
Text

package views
import (
"strconv"
"github.com/rjNemo/rentease/internal/domains/booking"
)
templ LineItem(item *booking.Item) {
<tr>
<th scope="row"></th>
<td>{ item.Item }</td>
<td>{ strconv.Itoa(item.Quantity) }</td>
<td>{ item.Price }</td>
<td>{ item.PaymentMethod }</td>
<td>{ item.PaymentStatus }</td>
</tr>
}