mirror of
https://github.com/rjNemo/rentease.git
synced 2026-06-10 12:46:53 +00:00
30 lines
476 B
Text
30 lines
476 B
Text
package view
|
|
|
|
import ()
|
|
|
|
templ BookingLines(bookings []*ListBookingsViewModel) {
|
|
<tbody>
|
|
for _, b := range bookings {
|
|
<tr>
|
|
<th scope="row">
|
|
<a href={ b.Url }>
|
|
{ b.Id }
|
|
</a>
|
|
</th>
|
|
<td>
|
|
<span
|
|
if b.Canceled {
|
|
style="text-decoration: line-through;"
|
|
}
|
|
>
|
|
{ b.Name }
|
|
</span>
|
|
</td>
|
|
<td>{ b.Total }</td>
|
|
<td>{ b.From }</td>
|
|
<td>{ b.To }</td>
|
|
<td>{ b.Platform }</td>
|
|
</tr>
|
|
}
|
|
</tbody>
|
|
}
|