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