summaryrefslogtreecommitdiff
path: root/components/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'components/index.html')
-rw-r--r--components/index.html15
1 files changed, 14 insertions, 1 deletions
diff --git a/components/index.html b/components/index.html
index 00df90f..b8b126d 100644
--- a/components/index.html
+++ b/components/index.html
@@ -9,7 +9,20 @@
<script src="https://unpkg.com/htmx.org@2.0.4" integrity="sha384-HGfztofotfshcF7+8n44JQL2oJmowVChPTg48S+jvZoztPfvwD79OC/LTtG6dMp+" crossorigin="anonymous"></script>
</head>
<body>
- <div id="ancestor">
+ <div class="container">
+ <h1>Mixed Übungen</h1>
+ <div class="ubung-list">
+ {{range .}}
+ <button
+ class="ubung-button"
+ hx-get="/question?mixed_id={{.ID}}"
+ hx-target="#ancestor"
+ hx-swap="outerHTML">
+ {{.Name}} (Level {{.LevelID}})
+ </button>
+ {{end}}
+ </div>
+ <div id="ancestor"></div>
</div>
</body>
</html>