{% macro single_video(video_url, embed="yt", title="",width="560", height="315", class="center", code="

No code given

") -%} {% if (embed == "yt") %} {% if (title != "") %}

{{title}}

{% endif %}
{% else %} {{code}} {% endif %} {%- endmacro %} {% macro double_video(video_url1, video_url2, embed="yt", title="",width="560", height="315", class="center", code="

No code given

") -%} {% if (embed == "yt") %} {% if (title != "") %}

{{title}}

{% endif %}
{% else %} {{code}} {% endif %} {%- endmacro %} {% macro required(question) -%} {% if (question["required"] == "true") %} required {% endif %} {%- endmacro %} {% macro inputconfig(question) -%} {% if ("min" in question) %} min={{question["min"]}} {% endif %} {% if ("max" in question) %} max={{question["max"]}} {% endif %} {% if ("step" in question) %} step={{question["step"]}} {% endif %} {%- endmacro %} {% macro input(name, value='', type='text', size=20) -%} {%- endmacro %} Testform
{% if (infovideo) %}

{{ infovideo["infotext"] }}

{% endif %} {% if (stimulus_type == "single_video") %} {{ single_video(**stimulus_configuration) }} {% elif (stimulus_type == "double_video") %} {{ double_video(**stimulus_configuration) }} {% elif (stimulus_type == "empty") %} {% else %}

Error: Block {{ stimulus["type"] }} could not be loaded!

{% endif %}
{% for question in questions %} {% if (questions[question]["type"] == "likert") %}

{{ questions[question]['text']}}

{% for point in questions[question]["points"] %} {% endfor %}
{% elif (questions[question]["type"] == "textinput") %}
{% elif (questions[question]["type"] == "dateinput") %}
{% elif (questions[question]["type"] == "numberinput") %}
{% elif (questions[question]["type"] == "emailinput") %}
{% elif (questions[question]["type"] == "dropdowninput") %}
{% elif (questions[question]["type"] == "videoinput") %}

Gib Feedback als Video

{{ questions[question]['text']}}

{% else %}

Error: Block {{config["question 1"]["blocks"][block]["type"]}} could not be loaded!

{% endif %} {% endfor %}