mirror of
https://github.com/rjNemo/rentease.git
synced 2026-06-06 02:36:49 +00:00
28 lines
632 B
Text
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>
|
|
}
|