blob: 0b1451a55e5ab0bd452770fbdecc8ca4e0558d1e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
{% from "macros.j2" import court %}
<div class="fixed-grid has-12-cols">
<div class="grid">
{% for key, value in courts.items() %}
{{ court(key, value) }}
{% endfor %}
</div>
</div>
<div class="columns">
<div class="column">
<div class="field has-addons">
<div class="control">
<button class="button is-large is-responsive is-dark"
style="text-align:center"
hx-post="/decrement"
hx-swap="outerHTML"
hx-target="#guests">-</button>
</div>
<div hx-get="/guests" hx-swap="outerHTML" hx-trigger="revealed"></div>
<div class="control">
<button class="button is-large is-responsive is-dark"
style="text-align:center"
hx-post="/increment"
hx-swap="outerHTML"
hx-target="#guests">+</button>
</div>
</div>
</div>
<div class="column">
<div class="select is-large is-responsive">
<select name="type">
<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">
<button class="button is-dark is-large is-responsive"
hx-post="/propose"
hx-target="#games"
hx-include="[name='type']">New Round</button>
</div>
<div class="column"></div>
<div class="column">
<button class="button is-dark is-large is-responsive"
hx-post="/confirm"
hx-target="#games">Start Round</button>
</div>
<div class="column">
<button class="button is-dark is-large is-responsive"
hx-post="/clear"
hx-target="#games">Reset</button>
</div>
</div>
|