rentease/internal/view/booking_lines.templ
Ruidy ffa7f140d1
use daisyUI (#25)
* use tailwind and daisyui

* split the layout in multiple components

* remove unused code

* footer compoonent

* login form

log

* booking table

fd

* cancel style

* header

* booking form

* new booking

* line items

* line item

* report

* uniform headings
2024-11-16 19:24:26 +01:00

30 lines
472 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 {
class="line-through text-gray-500"
}
>
{ b.Name }
</span>
</td>
<td>{ b.Total }</td>
<td>{ b.From }</td>
<td>{ b.To }</td>
<td>{ b.Platform }</td>
</tr>
}
</tbody>
}