aboutsummaryrefslogtreecommitdiff
path: root/templates/players.j2
diff options
context:
space:
mode:
authorKaran Jayachandra <mail@karanjayachandra.com>2025-07-06 12:58:07 +0200
committerKaran Jayachandra <mail@karanjayachandra.com>2025-07-06 12:58:07 +0200
commit0da8dc16fb26e9df5d0efd7c7a463e354d8e00cf (patch)
treed016270ebf8e6e9fef499da5767c99b656c75075 /templates/players.j2
parent155e77d22f24d1984476144f48bf173044d089a0 (diff)
Transitioned back to a traditional flask app
Diffstat (limited to 'templates/players.j2')
-rw-r--r--templates/players.j231
1 files changed, 31 insertions, 0 deletions
diff --git a/templates/players.j2 b/templates/players.j2
new file mode 100644
index 0000000..0beeee9
--- /dev/null
+++ b/templates/players.j2
@@ -0,0 +1,31 @@
+{% from "macros.j2" import header, navbar, footer, player_button, guest_control %}
+<!doctype html>
+<html lang="en">
+ {{ header(url_for) }}
+ <body>
+ <section class="section">
+ {{ navbar(url_for) }}
+ <h4 class="title is-4">Members</h4>
+ <div class="fixed-grid has-4-cols">
+ <div class="grid">
+ {% for regular in regulars %}
+ <div class="cell"> {{ player_button(regular) }} </div>
+ {% endfor %}
+ </div>
+ <h4 class="title is-4">Guests</h4>
+ <div class="fixed-grid has-4-cols">
+ <div class="grid">
+ {% for guest in guests %}
+ <div class="cell"> {{ player_button(guest) }} </div>
+ {% endfor %}
+ </div>
+ </section>
+ <section class="section">
+ <div class="column">
+ <button class="button is-dark is-responsive"
+ hx-post="/reset_players">RESET!</button>
+ </div>
+ {{ footer() }}
+ </section>
+ </body>
+</html> \ No newline at end of file