diff options
| author | Karan Jayachandra <karan.jayachandra@nxp.com> | 2024-10-15 12:07:42 +0200 |
|---|---|---|
| committer | Karan Jayachandra <karan.jayachandra@nxp.com> | 2024-10-15 12:07:42 +0200 |
| commit | 600b6afff3066d5fc9c4eca659f969322e670a77 (patch) | |
| tree | 1bccadf85e486520d747bd1144ae98c7d0ad969b /templates/courts.j2 | |
| parent | ccdf8fcb51a47b79d5a1c0042699b0d60c3c304c (diff) | |
Cleaned up the code significantly
Diffstat (limited to 'templates/courts.j2')
| -rw-r--r-- | templates/courts.j2 | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/templates/courts.j2 b/templates/courts.j2 index 4e3cb3a..5dc64f9 100644 --- a/templates/courts.j2 +++ b/templates/courts.j2 @@ -2,7 +2,10 @@ <div class="grid"> {% for key, value in courts.items() %} <div class="cell"> - <button class={% if value %} "button is-success" {% else %} "button is-danger" {% endif %} hx-post="{{ "/court-toggle/" ~ key}}" hx-trigger="click" hx-swap="outerHTML">{{ key }}</button> + <button class={% if value %} "button is-success" {% else %} "button is-danger" {% endif %} + hx-post="{{ "/court-toggle/" ~ key}}" + hx-trigger="click" + hx-swap="outerHTML">{{ key }}</button> </div> {% endfor %} </div> |
