diff options
| author | Karan Jayachandra <karan.jayachandra@nxp.com> | 2024-10-04 18:23:33 +0200 |
|---|---|---|
| committer | Karan Jayachandra <karan.jayachandra@nxp.com> | 2024-10-04 18:23:33 +0200 |
| commit | 88d7300021cd3963f2d6a6202609b0f6e956cdab (patch) | |
| tree | d9e9e186d86572e57253a188467ebb4084535039 /templates/games.j2 | |
| parent | c58caf5b8b8801ba826b0ff6b241d7f25a333bc8 (diff) | |
Added the games view
Diffstat (limited to 'templates/games.j2')
| -rw-r--r-- | templates/games.j2 | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/templates/games.j2 b/templates/games.j2 new file mode 100644 index 0000000..22ea936 --- /dev/null +++ b/templates/games.j2 @@ -0,0 +1,18 @@ +<div class="games"> +<table> +<tr> + <th> Court </th> + <th colspan="2"> Team 1 </th> + <th colspan="2"> Team 2 </th> +</tr> +{% for game in games %} + <tr> + <th>{{ loop.index }}</th> + <td>{{ game.team1.player1.name }}</th> + <td>{{ game.team1.player2.name }}</th> + <td>{{ game.team2.player1.name }}</th> + <td>{{ game.team2.player2.name }}</th> + </tr> +{% endfor %} +</table> +</div>
\ No newline at end of file |
