likert visuals fixed, random order fixed

This commit is contained in:
Jan
2024-06-04 18:32:54 +02:00
parent 01a8e5f021
commit 1b1b37d108
6 changed files with 26 additions and 13 deletions

View File

@@ -44,11 +44,14 @@
<form action="http://localhost:5000/send_json" method="post">
{% for question in questions %}
{% if (questions[question]["type"] == "likert") %}
<div class="likert"></div>
<div class="likercontainer">
<div class="likert">
{% for point in questions[question]["points"] %}
<label><input name="likertscale" type="radio" value="{{ questions[question]['points'][point]['value'] }}"/><span>{{ questions[question]['points'][point]['text'] }}</span></label>
{% endfor %}
</div>
</div>
{% elif (questions[question]["type"] == "textinput") %}
{% else %}
<p>Error: Block {{config["question 1"]["blocks"][block]["type"]}} could not be loaded!</p>