{% comment %} Render the questiongroup as table. The labels of the keys are used as table headers, each questiongroup takes up one row of the table. Important: The questiongroup must have the view_option "with_keys": true set. Also, the questions should be rendered with view_option "template": "value_only". {% endcomment %} {% if config.label %}
{{ config.label }}
{% endif %} {% for width in config.column_widths %} {% endfor %} {% for key in keys %} {% if forloop.counter != 3 and forloop.counter != 5 %} {% endif %} {% endfor %} {% for questiongroup in questiongroups %} {% for question in questiongroup %} {% if forloop.counter == 1 %} {% elif forloop.counter == 2 %} {% elif forloop.counter == 3 %} {% endif %} {% endfor %} {% endfor %}
{{ key }}
{{ question }}{{ question }}
{{ question }}
{% elif forloop.counter == 4 %}
{{ question }} {% elif forloop.counter == 5 %} {{ question }}