summaryrefslogtreecommitdiff
path: root/templates/players.j2
diff options
context:
space:
mode:
authorKaran Jayachandra <karan.jayachandra@nxp.com>2024-10-11 18:56:48 +0200
committerKaran Jayachandra <karan.jayachandra@nxp.com>2024-10-11 18:56:48 +0200
commit20d668454a1e1d8f17f7e5d4d25f667f62381cd1 (patch)
tree5e13fc89296e4bb8e48c7296c51d4dd2122a4a63 /templates/players.j2
parent0db0ff2f1c712273ac48cb859c24253b1efa8384 (diff)
Working with Bulma CSS now
Diffstat (limited to 'templates/players.j2')
-rw-r--r--templates/players.j27
1 files changed, 4 insertions, 3 deletions
diff --git a/templates/players.j2 b/templates/players.j2
index 3005fa4..6179dbb 100644
--- a/templates/players.j2
+++ b/templates/players.j2
@@ -1,7 +1,8 @@
-<div class="grid-container">
+<div class="fixed-grid has-5-cols">
+<div class="grid">
{% 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 class="cell">
+ <button class={% if player.status %} "button is-success" {% else %} "button is-danger" {% 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