From 59950586ec0bf35f8d160ea7ac6c721f35e63397 Mon Sep 17 00:00:00 2001 From: Nicolas Caron Date: Fri, 24 Feb 2023 13:51:25 +0100 Subject: [PATCH] showing 1 statut for vehicles-list --- .../_partials/vehicles-list.html | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) 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}}