blob: 5dc64f9a3359896ca5f1e429059de8c9a6543100 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
<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>
|