diff --git a/web/layouts/vehicles_management/_partials/vehicles-list.html b/web/layouts/vehicles_management/_partials/vehicles-list.html index 74ae482..d24d315 100644 --- a/web/layouts/vehicles_management/_partials/vehicles-list.html +++ b/web/layouts/vehicles_management/_partials/vehicles-list.html @@ -33,7 +33,12 @@ {{range .ViewState.vehicles}} - {{range .Bookings}} + {{if not .Bookings}} + + Disponible + + {{else}} + {{range slice .Bookings 0 1}} {{if .Data.administrator_unavailability}} Retiré @@ -43,19 +48,18 @@ A venir - {{end}} - {{if eq .Status 0 }} + {{else if eq .Status 0 }} En cours - {{end}} - {{if eq .Status -1 }} + {{else}} Disponible {{end}} {{end}} {{end}} + {{end}}
{{.Data.licence_plate}}