{#This file is part of Rogō Rogō 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. Rogō 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 Rogō. If not, see . #} {# This template is for the dichotomous question type. author Dr Joseph Baxter copyright 2018 onwards The University of Nottingham Required variables: data.displayTF - displays true/false options if true otherwise Y/N data.options - the options available to select options.question_no - the question number options.optionno - the option number options.useranswer - the users previous answer options.abstain - display abstain method if true options.optiontext - the text of the option options.displayoptionmedia - flag to indicate if media can be displayed for the option options.optionmedia - the option media data.partid - the question part id #}
{% if data.displayAbstain %}
{{lang.abstain}}
{% endif %}
{% for i,p in data.options %}
  • {% if p.optiontext != '' %} {{p.optiontext}}
    {% endif %} {% if p.displayoptionmedia %} {% include 'paper/media.html' with {'data': p.optionmedia} %} {% endif %}
  • {% if p.abstain %}
  • {% endif %}
{% endfor %}