{#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 fill in the blank question type with drop down display. author Dr Joseph Baxter copyright 2018 onwards The University of Nottingham Required variables: data.blankoptions - array of text and fill in the blank options blankoptions.itemtype - blurb or blank option list blankoptions.itemcount - id of fill in the blank option list blankoptions.unans - flag indicating if fill in the blank has been previously answered blankoptions.itemvalue - blurb text or blank option itemvalue.answer - option itemvalue.selected - flag indicating if option was previously seleced data.questionno - the question number data.print - flag to indicate if the question is being printed #}
{# Display options table #} {% if data.print %}
{% set num = 0 %} {% for i,o in data.blankoptions %} {% if o.itemtype != 'blurb' %} {% set num = num + 1 %}
{{num}}.
    {% for a in o.itemvalue %}
  1. {{a.answer|raw}}
  2. {% endfor %}
{% endif %} {% endfor %}
{% endif %}
{% set num = 0 %} {% for i,p in data.blankoptions %} {% if p.itemtype == 'blurb' %} {{p.itemvalue|raw}} {% else %} {% set num = num + 1 %} {% if data.print %}  {{num}}.
{% endif %} {% if data.print %}
{% endif %} {% endif %} {% endfor %}