list all bookings
This commit is contained in:
@@ -14,23 +14,23 @@
|
||||
</form>
|
||||
</div>
|
||||
{{else}}
|
||||
<ul class="divide-y divide-gray-200 flex-1">
|
||||
<li class="py-5 px-4 flex">Conducteur</li>
|
||||
<li>______</li>
|
||||
<li class="py-5 px-4 flex">Passager</li>
|
||||
<li>______</li>
|
||||
<li class="py-5 px-4 flex">Date</li>
|
||||
</ul>
|
||||
<table class="min-w-full divide-y divide-gray-300">
|
||||
<tbody class="divide-y divide-gray-200 bg-white">
|
||||
<tr>
|
||||
<th>Date</th>
|
||||
<th>Conducteur</th>
|
||||
<th>Passager</th>
|
||||
</tr>
|
||||
|
||||
{{range .ViewState.bookingSolidarity}}
|
||||
<ul class="divide-y divide-gray-200 flex-1">
|
||||
<li class="py-5 px-4 flex">{{.Driver.FirstName}} {{.Driver.LastName}}</li>
|
||||
<li>______</li>
|
||||
<li class="py-5 px-4 flex">{{.Passenger.Id}} </li>
|
||||
<li>______</li>
|
||||
<li class="py-5 px-4 flex">{{( .PassengerPickupDate)}}</li>
|
||||
<li>____________</li>
|
||||
</ul>
|
||||
{{end}}
|
||||
<tr>
|
||||
<td class="whitespace-nowrap py-4 pl-4 pr-3 text-sm sm:pl-6">{{( .PassengerPickupDate)}}</td>
|
||||
<td class="whitespace-nowrap py-4 pl-4 pr-3 text-sm sm:pl-6">{{.Driver.FirstName}} {{.Driver.LastName}}</td>
|
||||
<td class="whitespace-nowrap py-4 pl-4 pr-3 text-sm sm:pl-6">{{.Passenger.FirstName}} {{.Passenger.LastName}} </td>
|
||||
</tr>
|
||||
{{end}}
|
||||
</tbody>
|
||||
</table>
|
||||
{{end}}
|
||||
</div>
|
||||
{{end}}
|
||||
Reference in New Issue
Block a user