diff options
Diffstat (limited to 'components/index.html')
-rw-r--r-- | components/index.html | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/components/index.html b/components/index.html index 5af9278..68f15ad 100644 --- a/components/index.html +++ b/components/index.html @@ -10,16 +10,17 @@ </head> <body> <div id="ancestor"> - <div> + <div class="question-text"> {{.Text}} </div> - <div> + <div id="feedback"></div> + <div id="options"> {{range $index, $option := .Options}} <button hx-post="/answer" hx-vals='{"selected": "{{$index}}", "question_id": "{{$.ID}}"}' - hx-target="#ancestor" - hx-swap="outerHTML" + hx-target="#feedback" + hx-swap="innerHTML" class="option-button" > {{$option}} |