aboutsummaryrefslogtreecommitdiff
path: root/templates/players.j2
diff options
context:
space:
mode:
authorKaran Jayachandra <karan.jayachandra@nxp.com>2024-04-12 10:29:29 +0200
committerKaran Jayachandra <karan.jayachandra@nxp.com>2024-04-12 10:29:29 +0200
commitc58caf5b8b8801ba826b0ff6b241d7f25a333bc8 (patch)
tree45b22248fd4fbcf23046ef30707da8ff1f65c880 /templates/players.j2
parente6939bb6421862a12048449094f2c55e6e9e401b (diff)
Added a more cleaner application
Diffstat (limited to 'templates/players.j2')
-rw-r--r--templates/players.j27
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/players.j2 b/templates/players.j2
new file mode 100644
index 0000000..3005fa4
--- /dev/null
+++ b/templates/players.j2
@@ -0,0 +1,7 @@
+<div class="grid-container">
+{% for player in players %}
+ <div class="grid-item">
+ <button class={% if player.status %} "active" {% else %} "dormant" {% endif %} hx-post="{{ "/player-toggle/" ~ player.name}}" hx-trigger="click" hx-swap="outerHTML">{{ player.name }}</button>
+ </div>
+{% endfor %}
+</div> \ No newline at end of file