edit vehicles-list to fix viewing status problems

This commit is contained in:
Nicolas CARON 2023-03-08 10:09:49 +01:00
parent 0f4d0e1e5b
commit b89b8064c5
1 changed files with 8 additions and 0 deletions

View File

@ -48,6 +48,14 @@
<span class="mt-1 p-1 bg-gray-500 text-white text-xs font-bold rounded-xl" >
Disponible
</span>
{{else if eq .Status 1 }}
<span class="mt-1 p-1 bg-co-blue text-white text-xs font-bold rounded-xl" >
A venir
</span>
{{else if eq .Status 0 }}
<span class="mt-1 p-1 bg-co-green text-white text-xs font-bold rounded-xl" >
En cours
</span>
{{end}}
{{end}}
{{else if gt (len .Bookings) 1}}