rentease/internal/view/item_list.templ

26 lines
465 B
Text

package view
templ ItemList(itemList ItemListViewModel) {
<tbody id="line-items">
for _, item := range itemList.Items {
@LineItem(&item)
}
</tbody>
<thead>
<tr>
<th></th>
<th></th>
<th>Price (€)</th>
<th>Payment Method</th>
<th>Sub-total (€)</th>
<th></th>
</tr>
</thead>
<tbody id="payment-lines">
if len(itemList.Payments) >0 {
for _,payment := range itemList.Payments {
@PaymentLine(&payment)
}
}
</tbody>
}