Compare commits
No commits in common. "ad7f5b642e311cd8c9bf4f6bbcf5cc5fc0539547" and "332d9dd509ce5d726922d91b6017e866e360ac6c" have entirely different histories.
ad7f5b642e
...
332d9dd509
|
@ -40,17 +40,13 @@
|
||||||
</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 if gt (len .Bookings) 1}}
|
{{else}}
|
||||||
{{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" >
|
||||||
|
@ -68,18 +64,6 @@
|
||||||
{{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>
|
||||||
|
|
Loading…
Reference in New Issue