aboutsummaryrefslogtreecommitdiff
path: root/app/templates/games.j2
diff options
context:
space:
mode:
authorKaran Jayachandra <mail@karanjayachandra.com>2025-07-06 13:31:37 +0200
committerKaran Jayachandra <mail@karanjayachandra.com>2025-07-06 13:31:37 +0200
commitc773faeea93fe5db2eb493c79c0c82f46336493c (patch)
treee1669ddfe85f6233673b6b04cb71e4fa1e7fed11 /app/templates/games.j2
parent0da8dc16fb26e9df5d0efd7c7a463e354d8e00cf (diff)
Running application
Diffstat (limited to 'app/templates/games.j2')
-rw-r--r--app/templates/games.j221
1 files changed, 21 insertions, 0 deletions
diff --git a/app/templates/games.j2 b/app/templates/games.j2
new file mode 100644
index 0000000..46150f7
--- /dev/null
+++ b/app/templates/games.j2
@@ -0,0 +1,21 @@
+<table class="table is-bordered is-striped is-narrow is-hoverable is-fullwidth" id="games">
+<thead>
+ <th colspan="5" align="center"> {{ title }} </th>
+</thead>
+<thead>
+ <th align="center"> Court </th>
+ <th colspan="2" align="center"> Team 1 </th>
+ <th colspan="2" align="center"> Team 2 </th>
+</thead>
+<tbody>
+{% for game in games %}
+ <tr {% if game.team1.player1.first == 'RESERVED' %} class="is-danger" {% endif %}>
+ <th align="center" style="width: 8%;">{{ game.court }}</th>
+ <td style="width: 23%;"><strong>{{ game.team1.player1.first }}</strong>{{ " " + game.team1.player1.last }}</th>
+ <td style="width: 23%;"><strong>{{ game.team1.player2.first }}</strong>{{ " " + game.team1.player2.last }}</th>
+ <td style="width: 23%;"><strong>{{ game.team2.player1.first }}</strong>{{ " " + game.team2.player1.last }}</th>
+ <td style="width: 23%;"><strong>{{ game.team2.player2.first }}</strong>{{ " " + game.team2.player2.last }}</th>
+ </tr>
+{% endfor %}
+</tbody>
+</table> \ No newline at end of file