diff options
| author | Karan Jayachandra <mail@karanjayachandra.com> | 2025-07-25 16:37:37 +0200 |
|---|---|---|
| committer | Karan Jayachandra <mail@karanjayachandra.com> | 2025-07-25 16:37:37 +0200 |
| commit | 7e480ec648941355c0373197120e81721bc57dd3 (patch) | |
| tree | 6ab2b7a9faebc5707df140453cef66d95494ad4a /app/templates/players.j2 | |
| parent | c37b96a254c3a88582e4507ea180d63ce65c9af0 (diff) | |
| parent | 38f099ae6ec7e7ae7338402a03654ee6378e4274 (diff) | |
Merge branch 'develop' into 'main'
Develop
See merge request KaranJayachandra/match_up!19
Diffstat (limited to 'app/templates/players.j2')
| -rw-r--r-- | app/templates/players.j2 | 34 |
1 files changed, 13 insertions, 21 deletions
diff --git a/app/templates/players.j2 b/app/templates/players.j2 index 16e3878..bacb215 100644 --- a/app/templates/players.j2 +++ b/app/templates/players.j2 @@ -3,46 +3,38 @@ <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"> + <header class="container">{{ navbar(url_for, login_status) }}</header> + <main class="container"> + <h3 >Members</h3> + <div class="parent"> {% 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"> + <h3>Guests</h3> + <div class="parent"> {% for guest in guests %} <div class="cell"> {{ player_button(guest) }} </div> {% endfor %} </div> - </section> - <section class="section"> - <div class="column"> + <h3>Controls</h3> + <div class="grid"> <button class="button is-dark is-responsive" hx-post="/reset_players">RESET!</button> </div> - <div class="column"> + <h3>Player Update</h3> + <div class="grid"> <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> + <footer class="container">{{ footer() }}</footer> + <script src="{{ url_for('static', filename='file.js') }}"></script> + </main> </body> </html>
\ No newline at end of file |
