rentease/internal/view/item_list.templ
Ruidy 584d81f7bd
Some checks failed
CI / checks (push) Has been cancelled
feat(i18n): add language toggle and localize views
2026-01-09 16:09:20 -04:00

28 lines
632 B
Text

package view
import "github.com/rjNemo/rentease/internal/i18n"
templ ItemList(itemList ItemListViewModel) {
<tbody id="line-items">
for _, item := range itemList.Items {
@LineItem(&item)
}
</tbody>
<thead>
<tr>
<th></th>
<th></th>
<th>{ i18n.Localize(ctx, "booking.view.price") } (€)</th>
<th>{ i18n.Localize(ctx, "booking.view.payment_method") }</th>
<th>{ i18n.Localize(ctx, "booking.view.subtotal") } (€)</th>
<th></th>
</tr>
</thead>
<tbody id="payment-lines">
if len(itemList.Payments) >0 {
for _,payment := range itemList.Payments {
@PaymentLine(&payment)
}
}
</tbody>
}