list all bookings
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
|
||||
{{define "driver_solidarity_list" }}
|
||||
<main>
|
||||
<form class="space-y-6" method="POST" name="create_booking">
|
||||
|
||||
<div class="max-w-7xl mx-auto px-4 sm:px-6 md:px-8" x-data="{
|
||||
state: {{.ViewState.JSONWithLimits 0 10}},
|
||||
@@ -20,6 +19,7 @@
|
||||
this.state.drivers = data
|
||||
this.current=page-1
|
||||
}
|
||||
|
||||
}">
|
||||
<h2 class="text-lg font-medium text-gray-900 p-4 sm:px-6">
|
||||
Conducteurs
|
||||
@@ -32,11 +32,9 @@
|
||||
<div class="overflow-hidden shadow ring-1 ring-black ring-opacity-5 md:rounded-lg">
|
||||
<table class="min-w-full divide-y divide-gray-300">
|
||||
<tbody class="divide-y divide-gray-200 bg-white">
|
||||
<span x-text="drivers"></span>
|
||||
<template x-for="driver in state.drivers.driver_journeys">
|
||||
<tr>
|
||||
<td class="whitespace-nowrap py-4 pl-4 pr-3 text-sm sm:pl-6">
|
||||
|
||||
<div class="flex items-center">
|
||||
<button type="button" @click="
|
||||
document.getElementById('driver_id').value = driver.id
|
||||
@@ -121,6 +119,5 @@
|
||||
<a href="driver/create">Ajouter un conducteur solidaire</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</main>
|
||||
{{end}}
|
||||
Reference in New Issue
Block a user