blob: 6231785c0c1674433ae0552f62b884cf8bb4f699 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
{% include 'base.html' %}
{% if nick %}
{% if link %}
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>
{% else %}
<form action="/set/answer_id" method="POST">
Vastaa kyselyyn koodilla:
<input type="text" name="link">
<input type="text" name="caller" value="answer" hidden="true">
<input type="submit" value="Kyselmään">
</form>
{% endif %}
{% endif %}
|