diff options
author | Olli Vilén <oviln@local> | 2023-11-16 22:11:46 +0200 |
---|---|---|
committer | Olli Vilén <oviln@local> | 2023-11-16 22:11:46 +0200 |
commit | 0ed244ef2dd27a835ec12fdbc93a1f20bbcd89eb (patch) | |
tree | ba673352e44f2e1e55b8dc762b45a9cd769376e3 /templates | |
parent | 93a927b130ba09cea29aba2077848f785ac48844 (diff) |
More db actions and forms.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/analyse.html | 2 | ||||
-rw-r--r-- | templates/answer.html | 1 | ||||
-rw-r--r-- | templates/create.html | 3 | ||||
-rw-r--r-- | templates/question.html | 9 | ||||
-rw-r--r-- | templates/quiz.html | 4 |
5 files changed, 19 insertions, 0 deletions
diff --git a/templates/analyse.html b/templates/analyse.html index 3220412..6970764 100644 --- a/templates/analyse.html +++ b/templates/analyse.html @@ -1,2 +1,4 @@ +<div id="nickbox">{{ nick }}</div> <div id="alertbox">{{ alert }}</div> <h1>analyse</h1> + diff --git a/templates/answer.html b/templates/answer.html index 808dde8..3870e6b 100644 --- a/templates/answer.html +++ b/templates/answer.html @@ -1,2 +1,3 @@ +<div id="nickbox">{{ nick }}</div> <div id="alertbox">{{ alert }}</div> <h1>answer</h1> diff --git a/templates/create.html b/templates/create.html index 15af509..0ba8164 100644 --- a/templates/create.html +++ b/templates/create.html @@ -1,2 +1,5 @@ +<div id="nickbox">{{ nick }}</div> <div id="alertbox">{{ alert }}</div> <h1>create</h1> +<a href="#question">Lisää kysymys</a> +</form> diff --git a/templates/question.html b/templates/question.html new file mode 100644 index 0000000..90d3abc --- /dev/null +++ b/templates/question.html @@ -0,0 +1,9 @@ +<div id="alertbox">{{ 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ä"> +</form> diff --git a/templates/quiz.html b/templates/quiz.html new file mode 100644 index 0000000..4c1871d --- /dev/null +++ b/templates/quiz.html @@ -0,0 +1,4 @@ +<div id="alertbox">{{ alert }}</div> +<form action="/new_quiz" method="POST"> +<input type="submit" value="Aloita uusi kyselmä"> +</form> |