{#This file is part of ExamSys
ExamSys is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
ExamSys is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with ExamSys. If not, see .
#}
{#
This template is for the calculation question type.
author Dr Joseph Baxter
copyright 2018 onwards The University of Nottingham
Required variables:
data.displayscenario - flag to indicate if a scenario can be displayed
data.scenario - the questions scenario
data.displaymedia - flag to indicate if question media can be displayed
data.leadin - the questions leadin
data.error - flag to indicate if an error has occurred in calculating answer
data.id - question id
data.screen - screen the question is displayed on
data.showunits - flag to indicate if the display units drop down should be displayed
data.numunitoptions - the number of display units available
data.options - the options available
options.key - option value
options.selected - flag to indicate if option was previously selected
data.option - single option available
data.feedbackprecision - the type precision of selected dp/sf
data.feedbackprecisionvalue - the value of the precision
data.useranswered - flag to indicate if the question has been previously answered
data.failedanswer - warning displayed if this is a child of a linked question and the parent has not been answered
data.answer - the users previous answer
data.numonscreen - the question number
data.assignednumber - question number
data.showstdset - flag to indicate if the standard settings scale should be displayed
data.stdset - the standard settings scale html
data.pagebreak - flag to indicate if page break should be inserted (for printing papers)
Required localised text -
lang.answer_to - answer to
lang.decimal_places - decimal places
lang.significant_figures - significant figues
#}
{% if data.displayscenario %}
{{data.scenario|raw}}
{% endif %}
{% if data.displaymedia %}
{% include 'paper/media.html' %}
{% endif %}
{{data.leadin|raw}}
{% if data.error %}
{% endif %}
{% endif %}
{# close questionblock div #}
{# close question-enhancedcalc div #}
{# close question section #}
{% if data.pagebreak %}
{% endif %}