diff options
author | Jani Peter Karhunen <jkarhun2@local> | 2023-11-25 03:32:29 +0200 |
---|---|---|
committer | Jani Peter Karhunen <jkarhun2@local> | 2023-11-25 03:32:29 +0200 |
commit | d2de3ae10b6f5314bd4b8243218212d2004f35b0 (patch) | |
tree | 2ab448e0c2ec361478851dbcb43bcd176d17b584 /templates/answer.html | |
parent | c059696450d301b99956d643c21b0e46b4fc39dc (diff) |
MEGA Commit. Rework of routing. Visuals. Answer analysis and much more.
Diffstat (limited to 'templates/answer.html')
-rw-r--r-- | templates/answer.html | 26 |
1 files changed, 21 insertions, 5 deletions
diff --git a/templates/answer.html b/templates/answer.html index 0ed0a05..eb49ff8 100644 --- a/templates/answer.html +++ b/templates/answer.html @@ -1,5 +1,21 @@ -<script src="answer.js"></script> -<div id="nickbox">{{ nick }}</div> -<div id="alertbox">{{ alert }}</div> -<h1>answer NOW!</h1> -<form id=questionForm action="/set/answers" method="POST"></form> +{% include 'base.html' %} + +Vastaa kyselmään "{{ link }}": + +<form class="kysQuestionaire" action="/set/answers" method="POST"> +<div id="questions" class="kysQuestions"> +{% for q in questions %} +<div class="kysQuestion"> +<div class="kysText">{{ q.q }}</div> +<div class="kysScale"> + <div class="kysNegative">{{ q.n }}</div> + <div class="kysScaleSpacer"></div> + <div class="kysPositive">{{ q.p }}</div> +</div> +<input class="kysAnswer" type="range" min="0" max="999" name="{{ q.i }}"> +</div> +{% endfor %} +<input class="kysSubmitAnswers" type="submit" value="Vastaa kyselyyn"> +</div> +</form> + |