diff options
| author | Karan Jayachandra <mail@karanjayachandra.com> | 2024-10-16 21:41:27 +0000 |
|---|---|---|
| committer | Karan Jayachandra <mail@karanjayachandra.com> | 2024-10-16 21:41:27 +0000 |
| commit | 36cc7d82a55cbd8167e1f52637dd1938497dd8cc (patch) | |
| tree | 096d2b629818f79674d22a14eff124f082449b6e /templates/courts.j2 | |
| parent | d18e5880b47fcdf6542bcb9502e8cf35a4276f05 (diff) | |
| parent | 9d25fd163d2b8ba8978747c1edc1fc0d2073f076 (diff) | |
Merge branch 'feature/db' into 'develop'
Full Functionality
See merge request KaranJayachandra/match_up!2
Diffstat (limited to 'templates/courts.j2')
| -rw-r--r-- | templates/courts.j2 | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/templates/courts.j2 b/templates/courts.j2 index 64fd44a..d650298 100644 --- a/templates/courts.j2 +++ b/templates/courts.j2 @@ -1,9 +1,8 @@ +{% from "macros.j2" import court %} <div class="fixed-grid has-12-cols"> <div class="grid"> -{% for court in courts %} - <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> +{% for key, value in courts.items() %} + {{ court(key, value) }} {% endfor %} </div> </div>
\ No newline at end of file |
