diff --git a/web/layouts/vehicles_management/_partials/vehicles-list.html b/web/layouts/vehicles_management/_partials/vehicles-list.html index f831521..715554a 100644 --- a/web/layouts/vehicles_management/_partials/vehicles-list.html +++ b/web/layouts/vehicles_management/_partials/vehicles-list.html @@ -1,4 +1,13 @@ {{define "vehicles_list"}} +{{range $.ViewState.bookings}} + {{.Vehicleid}} +
+{{end}} +
+{{range $.ViewState.vehicles}} + {{.ID}} +
+{{end}}
@@ -7,6 +16,10 @@ + {{range .ViewState.vehicles}} +
+ Statut + Numéro (Immat / Bicycode) @@ -28,6 +41,31 @@
+ {{range $.ViewState.bookings}} + {{if .Data.administrator_unavailability}} + + Retiré + + {{else}} + {{if eq .Status 1 }} + + A venir + + {{end}} + {{if eq .Status 0 }} + + En cours + + {{end}} + {{if eq .Status -1 }} + + Terminé + + {{end}} + {{end}} + {{end}} +
{{.Data.licence_plate}}