diff options
| author | Karan Jayachandra <mail@karanjayachandra.com> | 2025-07-06 13:31:37 +0200 |
|---|---|---|
| committer | Karan Jayachandra <mail@karanjayachandra.com> | 2025-07-06 13:31:37 +0200 |
| commit | c773faeea93fe5db2eb493c79c0c82f46336493c (patch) | |
| tree | e1669ddfe85f6233673b6b04cb71e4fa1e7fed11 /app/templates/controls.j2 | |
| parent | 0da8dc16fb26e9df5d0efd7c7a463e354d8e00cf (diff) | |
Running application
Diffstat (limited to 'app/templates/controls.j2')
| -rw-r--r-- | app/templates/controls.j2 | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/app/templates/controls.j2 b/app/templates/controls.j2 new file mode 100644 index 0000000..0183c97 --- /dev/null +++ b/app/templates/controls.j2 @@ -0,0 +1,47 @@ +{% from "macros.j2" import court_button %} +<div class="fixed-grid has-6-cols"> + <div class="grid"> + {% for key, value in courts.items() %} + {{ court_button(key, value) }} + {% endfor %} + </div> +</div> +<div class="columns"> + <div class="column"> + <div class="select is-responsive"> + <select name="levels"> + <option>10 Levels</option> + <option>8 Levels</option> + <option>6 Levels</option> + <option>4 Levels</option> + <option>2 Levels</option> + <option>0 Levels</option> + </select> + </div> + </div> + <div class="column"> + <div class="select is-responsive"> + <select name="team"> + <option>Random</option> + <option>Teams</option> + </select> + </div> + </div> + <div class="column"> + <button class="button is-dark is-responsive" + hx-post="/propose" + hx-target="#games" + hx-include="[name='levels'], [name='team']">Generate</button> + </div> + <div class="column"></div> + <div class="column"> + <button class="button is-dark is-responsive" + hx-post="/confirm" + hx-target="#games">Confirm</button> + </div> + <div class="column"> + <button class="button is-dark is-responsive" + hx-post="/reset" + hx-target="#games">RESET!</button> + </div> +</div>
\ No newline at end of file |
