{#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 matrix question type. author Dr Joseph Baxter copyright 2018 onwards The University of Nottingham Required variables: data.matchoptions - the options matchoptions.option - option text matchoptions.value - option value matchoptions.selected - flag to indicate if option has previously been selected data.matchscenarios - option scenarios matchscenarios.id - scenario id matchscenarios.value - scenario value matchscenarios.unanswered - flag to indicate if option has previously been answered data.questionno - question number data.print - flag to indicate if printing question #} {# To ensure correct page breaking when printed use display table #} {% if data.print %}
{% for i,s in data.matchscenarios %}
{% for m in data.matchoptions %}
{% endfor %}
{% endfor %}
{% else %} {% for m in data.matchoptions %} {% endfor %} {% for i,s in data.matchscenarios %} {% for m in data.matchoptions %} {% endfor %} {% endfor %}
{{m.option}}
{{s.id}}. {{s.value}}
{% endif %}