diff options
Diffstat (limited to 'templates/courts.j2')
| -rw-r--r-- | templates/courts.j2 | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/templates/courts.j2 b/templates/courts.j2 new file mode 100644 index 0000000..64fd44a --- /dev/null +++ b/templates/courts.j2 @@ -0,0 +1,9 @@ +<div class="fixed-grid has-12-cols"> +<div class="grid"> +{% for court in courts %} + <div class="cell"> + <button class={% if court.status %} "button is-success" {% else %} "button is-danger" {% endif %} hx-post="{{ "/court-toggle/" ~ court.number}}" hx-trigger="click" hx-swap="outerHTML">{{ court.number }}</button> + </div> +{% endfor %} +</div> +</div>
\ No newline at end of file |
