diff options
| author | Karan Jayachandra <karan.jayachandra@nxp.com> | 2024-10-11 18:56:48 +0200 |
|---|---|---|
| committer | Karan Jayachandra <karan.jayachandra@nxp.com> | 2024-10-11 18:56:48 +0200 |
| commit | 20d668454a1e1d8f17f7e5d4d25f667f62381cd1 (patch) | |
| tree | 5e13fc89296e4bb8e48c7296c51d4dd2122a4a63 /templates/courts.j2 | |
| parent | 0db0ff2f1c712273ac48cb859c24253b1efa8384 (diff) | |
Working with Bulma CSS now
Diffstat (limited to 'templates/courts.j2')
| -rw-r--r-- | templates/courts.j2 | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/templates/courts.j2 b/templates/courts.j2 index 3134aca..64fd44a 100644 --- a/templates/courts.j2 +++ b/templates/courts.j2 @@ -1,7 +1,9 @@ -<div class="grid-container"> +<div class="fixed-grid has-12-cols"> +<div class="grid"> {% for court in courts %} - <div class="grid-item"> - <button class={% if court.status %} "active" {% else %} "dormant" {% endif %} hx-post="{{ "/court-toggle/" ~ court.number}}" hx-trigger="click" hx-swap="outerHTML">{{ court.number }}</button> + <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 |
