summaryrefslogtreecommitdiff
path: root/templates/courts.j2
diff options
context:
space:
mode:
authorKaran Jayachandra <mail@karanjayachandra.com>2024-10-14 08:51:59 +0000
committerKaran Jayachandra <mail@karanjayachandra.com>2024-10-14 08:51:59 +0000
commiteac95cc2e259badf3a8c3309e6e7be97d5cbd868 (patch)
tree492b1497cf648e08e84a35dea2d217a57643dab0 /templates/courts.j2
parent2b264abdf62822936e3510b0f9690ba1e359a9b8 (diff)
parentf80463a6437533deef1d85ffa31cf0cc5ed8e454 (diff)
Merge branch 'pure' into 'develop'
Dash to Flask HTML Conversion See merge request KaranJayachandra/match_up!1
Diffstat (limited to 'templates/courts.j2')
-rw-r--r--templates/courts.j29
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