29 lines
1.4 KiB
Plaintext
29 lines
1.4 KiB
Plaintext
{{ range .Bookings -}}
|
|
<tr class="booking-{{ .Status }}">
|
|
<td><a href="{{ .URL }}">{{ .Reference }}</a></td>
|
|
<td>{{ .ArrivalDate | formatDate }}</td>
|
|
<td>{{ .DepartureDate | formatDate }}</td>
|
|
<td>{{ .HolderName }}</td>
|
|
<td class="booking-status">{{ .StatusLabel }}</td>
|
|
</tr>
|
|
{{- end }}
|
|
{{ if .Filters.Cursor.Val }}
|
|
<tr>
|
|
<td colspan="5">
|
|
{{ with .Filters -}}
|
|
<form data-hx-get="/admin/bookings" data-hx-target="closest tr" data-hx-swap="outerHTML">
|
|
{{ with .HolderName -}}<input type="hidden" name="{{ .Name }}"
|
|
value="{{ .Val }}">{{- end }}
|
|
{{ with .BookingStatus -}}<input type="hidden" name="{{ .Name }}"
|
|
value="{{ .String }}">{{- end }}
|
|
{{ with .FromDate -}}<input type="hidden" name="{{ .Name }}"
|
|
value="{{ .Val }}">{{- end }}
|
|
{{ with .ToDate -}}<input type="hidden" name="{{ .Name }}" value="{{ .Val }}">{{- end }}
|
|
{{ with .Cursor -}}<input type="hidden" name="{{ .Name }}" value="{{ .Val }}">{{- end }}
|
|
<button type="submit">{{( pgettext "Load more" "action" )}}</button>
|
|
</form>
|
|
{{- end }}
|
|
<td>
|
|
</tr>
|
|
{{- end }}
|