From 332d9dd509ce5d726922d91b6017e866e360ac6c Mon Sep 17 00:00:00 2001 From: Nicolas Caron Date: Fri, 3 Mar 2023 11:39:37 +0100 Subject: [PATCH] =?UTF-8?q?add=20'Disponible'=20for=20'Statut=20R=C3=A9ser?= =?UTF-8?q?vation'=20for=20some=20case?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../vehicles_management/_partials/vehicles-list.html | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/web/layouts/vehicles_management/_partials/vehicles-list.html b/web/layouts/vehicles_management/_partials/vehicles-list.html index 2a89e71..d213d2f 100644 --- a/web/layouts/vehicles_management/_partials/vehicles-list.html +++ b/web/layouts/vehicles_management/_partials/vehicles-list.html @@ -38,6 +38,14 @@ Disponible + {{else if len .Bookings | eq 1}} + {{range .Bookings}} + {{if eq .Status -1 }} + + Disponible + + {{end}} + {{end}} {{else}} {{range .Bookings}} {{if .Data.administrator_unavailability}} @@ -53,10 +61,6 @@ En cours - {{else}} - - Disponible - {{end}} {{end}} {{end}}