add 'Disponible' for 'Statut Réservation' for some case

This commit is contained in:
Nicolas CARON 2023-03-03 11:39:37 +01:00
parent bb70ed9136
commit 332d9dd509
1 changed files with 8 additions and 4 deletions

View File

@ -38,6 +38,14 @@
<span class="mt-1 p-1 bg-gray-500 text-white text-xs font-bold rounded-xl" >
Disponible
</span>
{{else if len .Bookings | eq 1}}
{{range .Bookings}}
{{if eq .Status -1 }}
<span class="mt-1 p-1 bg-gray-500 text-white text-xs font-bold rounded-xl" >
Disponible
</span>
{{end}}
{{end}}
{{else}}
{{range .Bookings}}
{{if .Data.administrator_unavailability}}
@ -53,10 +61,6 @@
<span class="mt-1 p-1 bg-co-green text-white text-xs font-bold rounded-xl" >
En cours
</span>
{{else}}
<span class="mt-1 p-1 bg-gray-500 text-white text-xs font-bold rounded-xl" >
Disponible
</span>
{{end}}
{{end}}
{{end}}