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/players.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/players.j2')
| -rw-r--r-- | templates/players.j2 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/templates/players.j2 b/templates/players.j2 index 6179dbb..4eedc54 100644 --- a/templates/players.j2 +++ b/templates/players.j2 @@ -1,8 +1,9 @@ +{% from "macros.j2" import player %} <div class="fixed-grid has-5-cols"> <div class="grid"> -{% for player in players %} +{% for id, value in players.items() %} <div class="cell"> - <button class={% if player.status %} "button is-success" {% else %} "button is-danger" {% endif %} hx-post="{{ "/player-toggle/" ~ player.name}}" hx-trigger="click" hx-swap="outerHTML">{{ player.name }}</button> + {{ player(id, value.status, value.name) }} </div> {% endfor %} </div>
\ No newline at end of file |
