blob: 4e3cb3ac502b757547e91301fc4d5bb832bc7e02 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
|
<div class="fixed-grid has-12-cols">
<div class="grid">
{% for key, value in courts.items() %}
<div class="cell">
<button class={% if value %} "button is-success" {% else %} "button is-danger" {% endif %} hx-post="{{ "/court-toggle/" ~ key}}" hx-trigger="click" hx-swap="outerHTML">{{ key }}</button>
</div>
{% endfor %}
</div>
</div>
|