diff options
| author | Karan Jayachandra <mail@karanjayachandra.com> | 2025-07-14 13:33:24 +0200 |
|---|---|---|
| committer | Karan Jayachandra <mail@karanjayachandra.com> | 2025-07-14 13:33:24 +0200 |
| commit | 7e4c451c052c9fc33136d184cdedec251f9ef6fd (patch) | |
| tree | 5cef1d2b3f7bb61551dd105974e66b11b81fff98 /app/templates/players.j2 | |
| parent | 078e792c73f1583433c745695a3b1a9630cedeb3 (diff) | |
| parent | 729203409fb73fdbac19b8af9d647883a5ac96b0 (diff) | |
Merge branch 'develop' into 'main'
Develop
See merge request KaranJayachandra/match_up!14
Diffstat (limited to 'app/templates/players.j2')
| -rw-r--r-- | app/templates/players.j2 | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/app/templates/players.j2 b/app/templates/players.j2 new file mode 100644 index 0000000..16e3878 --- /dev/null +++ b/app/templates/players.j2 @@ -0,0 +1,48 @@ +{% 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> + <div class="column"> + <form method="POST" enctype="multipart/form-data" hx-post="/update_players"> + <div id="file-js" class="file has-name is-fullwidth"> + <label class="file-label"> + <input class="file-input" type="file" name="players" /> + <span class="file-cta"> + <span class="file-icon"> + <i class="fas fa-upload"></i> + </span> + <span class="file-label"> Choose a file⦠</span> + </span> + <span class="file-name"> No file uploaded </span> + </label> + <button class="button is-dark is-responsive">UPDATE!</button> + </div> + </form> + </div> + {{ footer() }} + </section> + </body> +</html>
\ No newline at end of file |
