aboutsummaryrefslogtreecommitdiff
path: root/src/match_up/templates/players.j2
diff options
context:
space:
mode:
authorKaran Jayachandra <mail@karanjayachandra.com>2024-11-15 17:26:47 +0000
committerKaran Jayachandra <mail@karanjayachandra.com>2024-11-15 17:26:47 +0000
commit7b7f8cdef5f035ccdab714059c1a6c54b80c4ba3 (patch)
tree2d7ea5de37f2bda57be419b4aa37971afa09eab5 /src/match_up/templates/players.j2
parentf68c54ae8f921c23851680b2501fac8bda1b4010 (diff)
parent7b8bbe6db3680af65c3701afbcd31ac1f61773af (diff)
Merge branch 'develop' into 'main'2.0
Database and javascript timer implemented See merge request KaranJayachandra/match_up!11
Diffstat (limited to 'src/match_up/templates/players.j2')
-rw-r--r--src/match_up/templates/players.j231
1 files changed, 31 insertions, 0 deletions
diff --git a/src/match_up/templates/players.j2 b/src/match_up/templates/players.j2
new file mode 100644
index 0000000..cd41925
--- /dev/null
+++ b/src/match_up/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">Players</h4>
+ <div class="fixed-grid has-4-cols">
+ <div class="grid">
+ {% for player in players %}
+ <div class="cell"> {{ player_button(player) }} </div>
+ {% endfor %}
+ </div>
+ <h4 class="title is-4">Guests</h4>
+ <div class="fixed-grid has-3-cols">
+ <div class="grid">
+ {% for level in guests %}
+ <div class="cell"> {{ guest_control(level, guests[level]) }} </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