diff options
| author | Karan Jayachandra <karan.jayachandra@nxp.com> | 2024-04-05 17:44:16 +0200 |
|---|---|---|
| committer | Karan Jayachandra <karan.jayachandra@nxp.com> | 2024-04-05 17:44:16 +0200 |
| commit | 2b264abdf62822936e3510b0f9690ba1e359a9b8 (patch) | |
| tree | a2dfaa6cfb90ff416b1665dbf863c48e726c2b92 /templates | |
| parent | 9ef7d95c7010351078a929f5144f5098d4142cd0 (diff) | |
Added a basic version using flask and jinja
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/index.html | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/templates/index.html b/templates/index.html new file mode 100644 index 0000000..db4a991 --- /dev/null +++ b/templates/index.html @@ -0,0 +1,51 @@ +<!doctype html> +<link rel="stylesheet" href="https://cdn.simplecss.org/simple.min.css"> + +<html> + <head> + <title>Match Up!</title> + </head> + <body> + <h1>Match Up!</h1> + <div class="row"> + <div style=" float: left; width: 60%"> + <table> + <thead> + <tr> + <th> Court </th> + <th> Team 1 </th> + <th> Team 2 </th> + </tr> + </thead> + <tbody> + {% for game in game_list %} + <tr> + <td width="10%"> {{game.court_number}} </td> + <td width="40%"> {{game.team_1.player_1.get_name()}} <br> {{game.team_1.player_2.get_name()}} </td> + <td width="40%"> {{game.team_2.player_1.get_name()}} <br> {{game.team_2.player_2.get_name()}} </td> + </tr> + {% endfor %} + </tbody> + </table> + </div> + <div style=" float: left; width: 30%"> + <table> + <thead> + <tr> + <th> Player </th> + </tr> + </thead> + <tbody> + {% for player in player_list %} + <tr> + <td style={% if player.status %} "color : green" {% else %} "color : red" {% endif %}> + {{ player.get_name() }} + </td> + </tr> + {% endfor %} + </tbody> + </table> + </div> + </div> + </body> +</html>
\ No newline at end of file |
