From 70ad96a4e8970641091a911d6210c54b682ce96a Mon Sep 17 00:00:00 2001 From: Nicolas Caron Date: Thu, 23 Feb 2023 16:46:38 +0100 Subject: [PATCH] add 'statut' on vehicles-list template --- .../_partials/vehicles-list.html | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) 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}}