diff options
| author | Karan Jayachandra <karan.jayachandra@nxp.com> | 2024-10-16 21:47:26 +0200 |
|---|---|---|
| committer | Karan Jayachandra <karan.jayachandra@nxp.com> | 2024-10-16 21:47:26 +0200 |
| commit | 74480cbe2b335fd141cdf5f07bb08808c0d08692 (patch) | |
| tree | ca9f5c55579acfd8394469e2644dc41dfd625988 /templates/courts.j2 | |
| parent | 83cb89862c7c330552c48d9b25f898388693c420 (diff) | |
Added all macros and also stored the js, css, png and ico files
Diffstat (limited to 'templates/courts.j2')
| -rw-r--r-- | templates/courts.j2 | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/templates/courts.j2 b/templates/courts.j2 index 2bc8a95..d650298 100644 --- a/templates/courts.j2 +++ b/templates/courts.j2 @@ -1,12 +1,8 @@ +{% from "macros.j2" import court %} <div class="fixed-grid has-12-cols"> <div class="grid"> {% for key, value in courts.items() %} - <div class="cell"> - <button class={% if value %} "button is-success is-large" {% else %} "button is-danger is-large" {% endif %} - hx-post="{{ "/court-toggle/" ~ key}}" - hx-trigger="click" - hx-swap="outerHTML">{{ key }}</button> - </div> + {{ court(key, value) }} {% endfor %} </div> </div>
\ No newline at end of file |
