aboutsummaryrefslogtreecommitdiff
path: root/templates/controls.j2
diff options
context:
space:
mode:
authorKaran Jayachandra <karan.jayachandra@nxp.com>2024-10-16 23:57:24 +0200
committerKaran Jayachandra <karan.jayachandra@nxp.com>2024-10-16 23:57:24 +0200
commita355423ff7566ff1d38bfa1627ec5b7ffa4b6bdc (patch)
treea1d9ae0e6dd81238a0e3cb142b13cb8d68d3699b /templates/controls.j2
parent36cc7d82a55cbd8167e1f52637dd1938497dd8cc (diff)
Cleaned up the layout a bit
Diffstat (limited to 'templates/controls.j2')
-rw-r--r--templates/controls.j210
1 files changed, 9 insertions, 1 deletions
diff --git a/templates/controls.j2 b/templates/controls.j2
index 1799e01..8e190c5 100644
--- a/templates/controls.j2
+++ b/templates/controls.j2
@@ -1,3 +1,5 @@
+{% from "macros.j2" import court %}
+<p class="title">Controls</p>
<div class="columns">
<div class="column">
<div class="field has-addons">
@@ -48,4 +50,10 @@
hx-target="#games">Reset</button>
</div>
</div>
-<div hx-post="/clear" hx-swap="outerHTML" hx-trigger="revealed"></div>
+<div class="fixed-grid has-12-cols">
+<div class="grid">
+{% for key, value in courts.items() %}
+ {{ court(key, value) }}
+{% endfor %}
+</div>
+</div> \ No newline at end of file