diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/create.html | 4 | ||||
-rw-r--r-- | templates/question.html | 22 |
2 files changed, 19 insertions, 7 deletions
diff --git a/templates/create.html b/templates/create.html index 0ba8164..fe2aa24 100644 --- a/templates/create.html +++ b/templates/create.html @@ -1,5 +1,9 @@ +<script src="create.js"></script> <div id="nickbox">{{ nick }}</div> <div id="alertbox">{{ alert }}</div> <h1>create</h1> + +<div id=questions></div> + <a href="#question">Lisää kysymys</a> </form> 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> |