From c16e27fb25920b3a52a11c41d56dd73152a73630 Mon Sep 17 00:00:00 2001 From: Nicolas Caron Date: Fri, 24 Feb 2023 10:53:27 +0100 Subject: [PATCH] showing all statuts for vehicle --- .../_partials/bookings-list.html | 2 +- .../_partials/vehicles-list.html | 23 ++++++------------- 2 files changed, 8 insertions(+), 17 deletions(-) diff --git a/web/layouts/vehicles_management/_partials/bookings-list.html b/web/layouts/vehicles_management/_partials/bookings-list.html index d2a4f98..122f9a0 100644 --- a/web/layouts/vehicles_management/_partials/bookings-list.html +++ b/web/layouts/vehicles_management/_partials/bookings-list.html @@ -34,7 +34,7 @@ {{range .ViewState.bookings}} - + {{if .Data.administrator_unavailability}} Retiré diff --git a/web/layouts/vehicles_management/_partials/vehicles-list.html b/web/layouts/vehicles_management/_partials/vehicles-list.html index 21d8b70..74ae482 100644 --- a/web/layouts/vehicles_management/_partials/vehicles-list.html +++ b/web/layouts/vehicles_management/_partials/vehicles-list.html @@ -1,13 +1,4 @@ {{define "vehicles_list"}} -
@@ -41,26 +32,26 @@ {{range .ViewState.vehicles}} - - {{range $.ViewState.bookings}} + + {{range .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é + + Disponible {{end}} {{end}}