add 'Retiré' in 'Statut Réservation' for some case

This commit is contained in:
Nicolas CARON 2023-03-03 13:16:26 +01:00
parent 332d9dd509
commit 193bd8ef3a
1 changed files with 7 additions and 3 deletions

View File

@ -39,13 +39,17 @@
Disponible
</span>
{{else if len .Bookings | eq 1}}
{{range .Bookings}}
{{if eq .Status -1 }}
{{range .Bookings}}
{{if .Data.administrator_unavailability}}
<span class="mt-1 p-1 bg-black text-white text-xs font-bold rounded-xl" >
Retiré
</span>
{{else 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}}
{{end}}
{{else}}
{{range .Bookings}}
{{if .Data.administrator_unavailability}}