summaryrefslogtreecommitdiff
path: root/templates/question.html
diff options
context:
space:
mode:
authorTuomas Klavér <tklavr@local>2023-11-20 02:04:12 +0200
committerTuomas Klavér <tklavr@local>2023-11-20 02:04:12 +0200
commitd13d4860f3d5b51d659379aa8a38742bfe49bf37 (patch)
treeeaf65876d9a4497f282dab300007338144c53001 /templates/question.html
parent4724a8667371abcf8b0a5a7355a7c2588841c135 (diff)
Questions now shows up. DB -> JSON -> JS -> DOM
Diffstat (limited to 'templates/question.html')
-rw-r--r--templates/question.html22
1 files changed, 15 insertions, 7 deletions
diff --git a/templates/question.html b/templates/question.html
index 90d3abc..6d0dca1 100644
--- a/templates/question.html
+++ b/templates/question.html
@@ -1,9 +1,17 @@
-<div id="alertbox">{{ alert }}</div>
+<div id="kysAlert">{{ alert }}</div>
<form action="/new_question" method="POST">
-Kysymys:<input type="text" name="question" rows="1" cols="120"><br>
-<input type="text" name="neg_ans" rows="1" cols="40"> : valinnat :
-<input type="text" name="pos_ans" rows="1" cols="40"><br>
-<input type="range" min="-1000" max="1000" value="0"
- class="slider" name="answer" class="answerSlider"><br>
-<input type="submit" value="Lähetä">
+<div class="kysQuestion">
+<div class="kysCreateText">Kysymys:</div>
+<div class="kysCreateText"><input type="text" name="question"></div>
+<div class="kysCreateText">Valinnat:</div>
+<div class="kysScale">
+ <div class="kysNegative"><input type="text" name="neg_ans"></div>
+ <div class="kysScaleSpacer"></div>
+ <div class="kysPositive"><input type="text" name="pos_ans"></div>
+</div>
+
+<input type="range" min="0" max="999" value="500"
+ class="kysAnswer" name="answer" >
+<input type="submit" value="Lisää kysymys">
+</div>
</form>