summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
Diffstat (limited to 'components')
-rw-r--r--components/index.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/components/index.html b/components/index.html
index b51c0e3..f0f18f0 100644
--- a/components/index.html
+++ b/components/index.html
@@ -20,6 +20,16 @@
<div class="wrong-answer">Try Again</div>
{{end}}
<div class="explanation">{{.Explanation}}</div>
+ {{if .ShowNext}}
+ <button
+ hx-get="/next-question?current_id={{.ID}}"
+ hx-target="#ancestor"
+ hx-swap="outerHTML"
+ class="next-button"
+ data-testid="next-button">
+ Next Question →
+ </button>
+ {{end}}
</div>
<div id="options">
<button