blob: 0499b7381e670cde837213b9c3afdf7949387601 (
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
|
{% from "macros.j2" import header, navbar, footer, player_button, guest_control %}
<!doctype html>
<html lang="en">
{{ header(url_for) }}
<body>
<section class="section">
{{ navbar(url_for) }}
<h4 class="title is-4">Members</h4>
<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="parent">
{% for guest in guests %}
<div class="cell"> {{ player_button(guest) }} </div>
{% endfor %}
</div>
</section>
<section class="section">
<div class="column">
<button class="button is-dark is-responsive"
hx-post="/reset_players">RESET!</button>
</div>
<div class="column">
<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>
</body>
</html>
|