blob: 816fd2133bdc74e0e879c4111bdb5e268ca2f19c (
plain)
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
|
{{define "main"}}
<!DOCTYPE html>
<html>
<head>
<title>German exercises</title>
<meta charset="utf-8" name="viewport" content="width=device-width,initial-scale=1"/>
<link rel="stylesheet" type="text/css" href="/assets/style.css" />
<link rel="icon" sizes="64x64" href="/assets/favicon/wolfhead_negated.ico" />
<script src="https://unpkg.com/htmx.org@2.0.4" integrity="sha384-HGfztofotfshcF7+8n44JQL2oJmowVChPTg48S+jvZoztPfvwD79OC/LTtG6dMp+" crossorigin="anonymous"></script>
</head>
<body>
<div class="container">
<h1>Mixed Übungen</h1>
<div class="ubung-list">
{{range .}}
<p>
<button
class="ubung-button"
hx-get="/mixed?id={{.ID}}"
hx-target="#ancestor"
hx-swap="outerHTML">
{{.Name}} (Level {{.LevelID}})
</button>
</p>
{{end}}
</div>
<div id="ancestor"></div>
</div>
</body>
</html>
{{end}}
|