diff options
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 |
