{% load staticfiles %} {% load maths_extras %}

Vennligst vent mens besvarelsen lastes inn.

{% for answer in object_list %}
{% if forloop.first %} {% endif %}
{% get_geogebra answer as geogebra %} {% if geogebra %} {% for geo in geogebra %} {% get_geogebra_task geo.answer.item.task as geoTask %}

Oppgave {{ forloop.counter }} - {{ answer.timespent|floatformat:"0" }} Sekunder

{% if answer.item.task.answertype == 1 %}
{% elif answer.item.task.answertype == 2 %}
{% get_mutiplechoice answer.item.task as multiplechoicetasks %} {% for multiplechoicetask in multiplechoicetasks %}
{% if multiplechoicetask.question %} {% else %} {% endif %}
{% get_multiplechoice_options_length multiplechoicetask as length %} {% for option in multiplechoicetask.multiplechoiceoption_set.all %} {% multiplechoice_answered option answer.text forloop.parentloop.counter as answered %} {% if length > 50 %} {% if multiplechoicetask.checkbox %}
{% else %}
{% endif %} {% else %} {% if option.correct %} {% else %} {% endif %} {% if multiplechoicetask.checkbox %} {% else %} {% endif %} {% endif %} {% endfor %}

{% endfor %}
{% elif answer.item.task.answertype == 4 %}
{% get_inputfields answer.item.task as inputfields %} {% for inputfield in inputfields %}

{{ inputfield.question }}

{% for inputs in inputfield.inputfield_set.all %}
{% if inputs.fraction %}
{% endif %}
{% endfor %}
{% if not forloop.last %}
{% endif %} {% endfor %}
{% endif %} {% if answer.item.task.reasoning %}
{% endif %}
{% if geo.data %} {% split_geo geo.data as approach %} {% for test in approach %} {% split_geo2 test as geoapproach %} {% for geotable in geoapproach %} {% endfor %} {% endfor %}
Tid Operasjon
{% if forloop.first %} {{ geotable }} sek {% else %} {{ geotable }} {% endif %}
{% else %}

Geogebra ble ikke brukt.

{% endif %}
{% endfor %} {% else %}
{% if answer.item.task.answertype == 1 %}
{% elif answer.item.task.answertype == 2 %}
{% get_mutiplechoice answer.item.task as multiplechoicetasks %} {% for multiplechoicetask in multiplechoicetasks %}
{% if multiplechoicetask.question %} {% else %} {% endif %}
{% get_multiplechoice_options_length multiplechoicetask as length %} {% for option in multiplechoicetask.multiplechoiceoption_set.all %} {% multiplechoice_answered option answer.text forloop.parentloop.counter as answered %} {% if length > 75 %} {% if multiplechoicetask.checkbox %}
{% else %}
{% endif %} {% else %} {% if option.correct %} {% else %} {% endif %} {% if multiplechoicetask.checkbox %} {% else %} {% endif %} {% endif %} {% endfor %}

{% endfor %}
{% elif answer.item.task.answertype == 4 %}
{% get_inputfields answer.item.task as inputfields %} {% for inputfield in inputfields %}

{{ inputfield.question }}

{% for inputs in inputfield.inputfield_set.all %}
{% if inputs.fraction %}
{% endif %}
{% endfor %}
{% if not forloop.last %}
{% endif %} {% endfor %}
{% endif %} {% if answer.item.task.reasoning %}
{% endif %}
{% endif %}
{% endfor %}