Compare commits

..

No commits in common. "ad7f5b642e311cd8c9bf4f6bbcf5cc5fc0539547" and "332d9dd509ce5d726922d91b6017e866e360ac6c" have entirely different histories.

1 changed files with 6 additions and 22 deletions

View File

@ -39,19 +39,15 @@
Disponible Disponible
</span> </span>
{{else if len .Bookings | eq 1}} {{else if len .Bookings | eq 1}}
{{range .Bookings}} {{range .Bookings}}
{{if .Data.administrator_unavailability}} {{if eq .Status -1 }}
<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" > <span class="mt-1 p-1 bg-gray-500 text-white text-xs font-bold rounded-xl" >
Disponible Disponible
</span> </span>
{{end}}
{{end}} {{end}}
{{end}} {{else}}
{{else if gt (len .Bookings) 1}} {{range .Bookings}}
{{range .Bookings}}
{{if .Data.administrator_unavailability}} {{if .Data.administrator_unavailability}}
<span class="mt-1 p-1 bg-black text-white text-xs font-bold rounded-xl" > <span class="mt-1 p-1 bg-black text-white text-xs font-bold rounded-xl" >
Retiré Retiré
@ -67,19 +63,7 @@
</span> </span>
{{end}} {{end}}
{{end}} {{end}}
{{end}} {{end}}
{{$allAvailable := true}}
{{range .Bookings}}
{{if ne .Status -1}}
{{ $allAvailable = false }}
{{ break }}
{{end}}
{{end}}
{{if $allAvailable}}
<span class="mt-1 p-1 bg-gray-500 text-white text-xs font-bold rounded-xl" >
Disponible
</span>
{{end}}
{{end}} {{end}}
</div> </div>
</td> </td>