From 88d7300021cd3963f2d6a6202609b0f6e956cdab Mon Sep 17 00:00:00 2001 From: Karan Jayachandra Date: Fri, 4 Oct 2024 18:23:33 +0200 Subject: Added the games view --- templates/courts.j2 | 3 +++ templates/games.j2 | 18 ++++++++++++++++++ templates/index.j2 | 12 ++++++++---- 3 files changed, 29 insertions(+), 4 deletions(-) create mode 100644 templates/courts.j2 create mode 100644 templates/games.j2 (limited to 'templates') diff --git a/templates/courts.j2 b/templates/courts.j2 new file mode 100644 index 0000000..a7893a7 --- /dev/null +++ b/templates/courts.j2 @@ -0,0 +1,3 @@ +
+ +
\ No newline at end of file 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 @@ +
+ + + + + + +{% for game in games %} + + + +{% endfor %} +
Court Team 1 Team 2
{{ loop.index }}{{ game.team1.player1.name }} + {{ game.team1.player2.name }} + {{ game.team2.player1.name }} + {{ game.team2.player2.name }} +
+
\ No newline at end of file diff --git a/templates/index.j2 b/templates/index.j2 index 82c3c80..be92207 100644 --- a/templates/index.j2 +++ b/templates/index.j2 @@ -30,16 +30,20 @@
-

🏸Match Up!

-

Come play with the Smashing Fellows!

+

🏸The Smashing Fellows

+

Total Courts: 8

-
+
+

Games

+
+
+

Players

\ No newline at end of file -- cgit v1.3.1