aboutsummaryrefslogtreecommitdiff
path: root/templates/court.j2
diff options
context:
space:
mode:
authorKaran Jayachandra <karan.jayachandra@nxp.com>2024-10-11 16:59:45 +0200
committerKaran Jayachandra <karan.jayachandra@nxp.com>2024-10-11 16:59:45 +0200
commit0db0ff2f1c712273ac48cb859c24253b1efa8384 (patch)
treeb92c4bd847ca94ad5cdf5a0b85576328484ff061 /templates/court.j2
parent39a01979a470e836da1128503e4587cb76eeae33 (diff)
First working version with court selection
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..6ae4d91
--- /dev/null
+++ b/templates/court.j2
@@ -0,0 +1 @@
+<button class={% if court.status %} "active" {% else %} "dormant" {% endif %} hx-post="{{ "/court-toggle/" ~ court.number}}" hx-trigger="click" hx-swap="outerHTML">{{ court.number }}</button> \ No newline at end of file