From 0da8dc16fb26e9df5d0efd7c7a463e354d8e00cf Mon Sep 17 00:00:00 2001 From: Karan Jayachandra Date: Sun, 6 Jul 2025 12:58:07 +0200 Subject: Transitioned back to a traditional flask app --- src/match_up/templates/controls.j2 | 47 ------------------ src/match_up/templates/games.j2 | 21 -------- src/match_up/templates/index.j2 | 13 ----- src/match_up/templates/macros.j2 | 99 -------------------------------------- src/match_up/templates/players.j2 | 31 ------------ 5 files changed, 211 deletions(-) delete mode 100644 src/match_up/templates/controls.j2 delete mode 100644 src/match_up/templates/games.j2 delete mode 100644 src/match_up/templates/index.j2 delete mode 100644 src/match_up/templates/macros.j2 delete mode 100644 src/match_up/templates/players.j2 (limited to 'src/match_up/templates') diff --git a/src/match_up/templates/controls.j2 b/src/match_up/templates/controls.j2 deleted file mode 100644 index 0183c97..0000000 --- a/src/match_up/templates/controls.j2 +++ /dev/null @@ -1,47 +0,0 @@ -{% from "macros.j2" import court_button %} -
-
- {% for key, value in courts.items() %} - {{ court_button(key, value) }} - {% endfor %} -
-
-
-
-
- -
-
-
-
- -
-
-
- -
-
-
- -
-
- -
-
\ No newline at end of file diff --git a/src/match_up/templates/games.j2 b/src/match_up/templates/games.j2 deleted file mode 100644 index 46150f7..0000000 --- a/src/match_up/templates/games.j2 +++ /dev/null @@ -1,21 +0,0 @@ - - - - - - - - - - -{% for game in games %} - - - -{% endfor %} - -
{{ title }}
Court Team 1 Team 2
{{ game.court }}{{ game.team1.player1.first }}{{ " " + game.team1.player1.last }} - {{ game.team1.player2.first }}{{ " " + game.team1.player2.last }} - {{ game.team2.player1.first }}{{ " " + game.team2.player1.last }} - {{ game.team2.player2.first }}{{ " " + game.team2.player2.last }} -
\ No newline at end of file diff --git a/src/match_up/templates/index.j2 b/src/match_up/templates/index.j2 deleted file mode 100644 index ce0d531..0000000 --- a/src/match_up/templates/index.j2 +++ /dev/null @@ -1,13 +0,0 @@ -{% from "macros.j2" import header, footer, navbar %} - - - {{ header(url_for) }} - -
- {{ navbar(url_for) }} -
-
- {{ footer() }} -
- - diff --git a/src/match_up/templates/macros.j2 b/src/match_up/templates/macros.j2 deleted file mode 100644 index 2974744..0000000 --- a/src/match_up/templates/macros.j2 +++ /dev/null @@ -1,99 +0,0 @@ -{% macro court_button(id, status) -%} - -{%- endmacro %} - -{% macro player_button(player) -%} - -{%- endmacro %} - -{% macro guest_control(level, value) -%} -
-
- -
-
- -
-
- -
-
-{%- endmacro %} - -{% macro header(url_for) -%} - - - - Match Up! - - - - - - - - - -{%- endmacro %} - -{% macro footer() -%} -
Made by Karan using Flask, HTMX, Notyf and Bulma
-{%- endmacro %} - -{% macro navbar(url_for) -%} - -{%- endmacro %} \ No newline at end of file diff --git a/src/match_up/templates/players.j2 b/src/match_up/templates/players.j2 deleted file mode 100644 index 0beeee9..0000000 --- a/src/match_up/templates/players.j2 +++ /dev/null @@ -1,31 +0,0 @@ -{% from "macros.j2" import header, navbar, footer, player_button, guest_control %} - - - {{ header(url_for) }} - -
- {{ navbar(url_for) }} -

Members

-
-
- {% for regular in regulars %} -
{{ player_button(regular) }}
- {% endfor %} -
-

Guests

-
-
- {% for guest in guests %} -
{{ player_button(guest) }}
- {% endfor %} -
-
-
-
- -
- {{ footer() }} -
- - \ No newline at end of file -- cgit v1.3.1