From 0db0ff2f1c712273ac48cb859c24253b1efa8384 Mon Sep 17 00:00:00 2001 From: Karan Jayachandra Date: Fri, 11 Oct 2024 16:59:45 +0200 Subject: First working version with court selection --- templates/court.j2 | 1 + templates/courts.j2 | 10 +++++++--- templates/games.j2 | 2 +- templates/index.j2 | 18 ++++++++++++------ 4 files changed, 21 insertions(+), 10 deletions(-) create mode 100644 templates/court.j2 (limited to 'templates') diff --git a/templates/court.j2 b/templates/court.j2 new file mode 100644 index 0000000..6ae4d91 --- /dev/null +++ b/templates/court.j2 @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/templates/courts.j2 b/templates/courts.j2 index a7893a7..3134aca 100644 --- a/templates/courts.j2 +++ b/templates/courts.j2 @@ -1,3 +1,7 @@ -
- -
\ No newline at end of file +
+{% for court in courts %} +
+ +
+{% endfor %} +
\ No newline at end of file diff --git a/templates/games.j2 b/templates/games.j2 index 22ea936..83fff7f 100644 --- a/templates/games.j2 +++ b/templates/games.j2 @@ -7,7 +7,7 @@ {% for game in games %} - {{ loop.index }} + {{ game.court.number }} {{ game.team1.player1.name }} {{ game.team1.player2.name }} {{ game.team2.player1.name }} diff --git a/templates/index.j2 b/templates/index.j2 index be92207..a9c451f 100644 --- a/templates/index.j2 +++ b/templates/index.j2 @@ -4,8 +4,8 @@ 🏸Match Up! - - + +
-

🏸The Smashing Fellows

-

Total Courts: 8

+

🏸The Smashing Fellows

+

Games

+
+

Courts

+
+
+

Players

+
-- cgit v1.3.1