From bad991c3bc2557d4f974245780a33da918832f6e Mon Sep 17 00:00:00 2001 From: Nicolas Caron Date: Fri, 12 May 2023 11:06:55 +0200 Subject: [PATCH] edit bookings-list, booking-display and delete-booking template --- .../_partials/bookings-list.html | 2 +- .../vehicles_management/booking-display.html | 19 ++++++++++++++++--- .../vehicles_management/delete-booking.html | 4 ++-- 3 files changed, 19 insertions(+), 6 deletions(-) diff --git a/web/layouts/vehicles_management/_partials/bookings-list.html b/web/layouts/vehicles_management/_partials/bookings-list.html index ff90f18..9aea540 100644 --- a/web/layouts/vehicles_management/_partials/bookings-list.html +++ b/web/layouts/vehicles_management/_partials/bookings-list.html @@ -39,7 +39,7 @@ Retiré - {{else if .Deleted}} + {{else if .Data.Deleted}} Annulé diff --git a/web/layouts/vehicles_management/booking-display.html b/web/layouts/vehicles_management/booking-display.html index 5b80de6..2d9715d 100644 --- a/web/layouts/vehicles_management/booking-display.html +++ b/web/layouts/vehicles_management/booking-display.html @@ -11,18 +11,18 @@ changeVehicle: false, selectedvehicle: '' }"> + {{if and (ne .ViewState.booking.Status -1) (not .ViewState.booking.Data.Deleted)}} - - + - + {{end}}