From 7c0820d3d19927e695faa18cb3f5494ee39e0c77 Mon Sep 17 00:00:00 2001 From: Karan Jayachandra Date: Tue, 12 Nov 2024 18:15:29 +0100 Subject: Database handling added --- src/match_up/templates/controls.j2 | 28 ++--------------- src/match_up/templates/games.j2 | 10 +++--- src/match_up/templates/macros.j2 | 14 ++++----- src/match_up/templates/players.j2 | 63 ++++++++++++++++++++++++++++++++++++-- 4 files changed, 75 insertions(+), 40 deletions(-) (limited to 'src/match_up/templates') diff --git a/src/match_up/templates/controls.j2 b/src/match_up/templates/controls.j2 index 6ba724a..e9e37f3 100644 --- a/src/match_up/templates/controls.j2 +++ b/src/match_up/templates/controls.j2 @@ -1,29 +1,12 @@ -{% from "macros.j2" import court %} +{% from "macros.j2" import court_button %}
{% for key, value in courts.items() %} - {{ court(key, value) }} + {{ court_button(key, value) }} {% endfor %}
-
-
-
- -
-
-
- -
-
-
{%- endmacro %} diff --git a/src/match_up/templates/players.j2 b/src/match_up/templates/players.j2 index 0d1f96c..f25889c 100644 --- a/src/match_up/templates/players.j2 +++ b/src/match_up/templates/players.j2 @@ -1,4 +1,4 @@ -{% from "macros.j2" import header, navbar, footer, player %} +{% from "macros.j2" import header, navbar, footer, player_button %} {{ header(url_for) }} @@ -7,10 +7,67 @@ {{ navbar(url_for) }}
- {% for id, value in players.items() %} -
{{ player(id, value.status, value.name) }}
+ {% for player in players %} +
{{ player_button(player) }}
{% endfor %}
+
+
+
+
+ +
+
+
+ +
+
+
+
+
+
+ +
+
+
+ +
+
+
+
+
+
+ +
+
+
+ +
+
+
+
+ +
+
{{ footer() }} -- cgit v1.3.1