aboutsummaryrefslogtreecommitdiff
path: root/src/match_up/templates/games.j2
diff options
context:
space:
mode:
authorKaran Jayachandra <mail@karanjayachandra.com>2024-11-09 18:19:48 +0000
committerKaran Jayachandra <mail@karanjayachandra.com>2024-11-09 18:19:48 +0000
commit1a7ae4bc2b759de7a03e6ad83632e6ad678754c8 (patch)
tree5b771e755f3a55c6794c649431de35798242a2e0 /src/match_up/templates/games.j2
parent2b18e0929a0b3e083cbe9e5e8ffd421ed8d17e52 (diff)
parent75a3ef7d14fcaedab29da46ba3dc5cf9c1bab699 (diff)
Merge branch 'feature/package' into 'develop'
Implemented packaging and command line arguments See merge request KaranJayachandra/match_up!10
Diffstat (limited to 'src/match_up/templates/games.j2')
-rw-r--r--src/match_up/templates/games.j221
1 files changed, 21 insertions, 0 deletions
diff --git a/src/match_up/templates/games.j2 b/src/match_up/templates/games.j2
new file mode 100644
index 0000000..d5afef1
--- /dev/null
+++ b/src/match_up/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 == 'RESERVED' %} class="is-danger" {% endif %}>
+ <th align="center" style="width: 8%;">{{ game.court }}</th>
+ <td style="width: 23%;">{{ game.team1.player1 }}</th>
+ <td style="width: 23%;">{{ game.team1.player2 }}</th>
+ <td style="width: 23%;">{{ game.team2.player1 }}</th>
+ <td style="width: 23%;">{{ game.team2.player2 }}</th>
+ </tr>
+{% endfor %}
+</tbody>
+</table> \ No newline at end of file