aboutsummaryrefslogtreecommitdiff
path: root/templates/court.j2
diff options
context:
space:
mode:
Diffstat (limited to 'templates/court.j2')
-rw-r--r--templates/court.j21
1 files changed, 1 insertions, 0 deletions
diff --git a/templates/court.j2 b/templates/court.j2
new file mode 100644
index 0000000..425e7d5
--- /dev/null
+++ b/templates/court.j2
@@ -0,0 +1 @@
+<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> \ No newline at end of file