blob: f25889cc843507584772bab490d1a4d0320b7b10 (
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
{% from "macros.j2" import header, navbar, footer, player_button %}
<!doctype html>
<html lang="en">
{{ header(url_for) }}
<body>
<section class="section">
{{ navbar(url_for) }}
<div class="fixed-grid has-4-cols">
<div class="grid">
{% for player in players %}
<div class="cell"> {{ player_button(player) }} </div>
{% endfor %}
</div>
<div class="columns">
<div class="column">
<div class="field has-addons">
<div class="control">
<button class="button is-responsive is-dark"
hx-post="/decrement_low_guest"
hx-swap="outerHTML"
hx-target="#lowguests">-</button>
</div>
<div hx-get="/low_guests" hx-swap="outerHTML" hx-trigger="revealed"></div>
<div class="control">
<button class="button is-responsive is-dark"
hx-post="/increment_low_guest"
hx-swap="outerHTML"
hx-target="#lowguests">+</button>
</div>
</div>
</div>
<div class="column">
<div class="field has-addons">
<div class="control">
<button class="button is-responsive is-dark"
hx-post="/decrement_mid_guest"
hx-swap="outerHTML"
hx-target="#midguests">-</button>
</div>
<div hx-get="/mid_guests" hx-swap="outerHTML" hx-trigger="revealed"></div>
<div class="control">
<button class="button is-responsive is-dark"
hx-post="/increment_mid_guest"
hx-swap="outerHTML"
hx-target="#midguests">+</button>
</div>
</div>
</div>
<div class="column">
<div class="field has-addons">
<div class="control">
<button class="button is-responsive is-dark"
hx-post="/decrement_high_guest"
hx-swap="outerHTML"
hx-target="#highguests">-</button>
</div>
<div hx-get="/high_guests" hx-swap="outerHTML" hx-trigger="revealed"></div>
<div class="control">
<button class="button is-responsive is-dark"
hx-post="/increment_high_guest"
hx-swap="outerHTML"
hx-target="#highguests">+</button>
</div>
</div>
</div>
<div class="column">
<button class="button is-dark is-responsive"
hx-post="/reset_players">Reset!</button>
</div>
</div>
{{ footer() }}
</section>
</body>
</html>
|