{% load i18n %} {% load list_to_columns %}

{{ numbering|default:'' }} {{ label }}

{% for questiongroup in raw_questiongroups %} {% if questiongroup.qg_keyword == 'app_qg_27' %} {% for key, values in questiongroup.data_labelled.0 %} {% for value in values %}
{% with curr_value=questiongroup.data.0.0.1|get_by_index:forloop.counter0 curr_qg=raw_questiongroups|get_by_index:forloop.counter %} {% if curr_value != 'app_subsidies_inputs_none' and curr_qg.layout != 'not_conditional' %} {% for header in table_headers %} {% if curr_value == 'app_subsidies_inputs_labour' and forloop.counter == 1 %} {% else %} {{ header }} {% endif %} {% endfor %} {# {% if curr_value == 'app_subsidies_inputs_labour' %}#} {# #} {# {% for key, values in curr_qg.data_labelled.0 %}#} {# #} {# {% endfor %}#} {# {% else %}#} {% for key, values in curr_qg.data_labelled.0 %} {% if forloop.first %} {% endif %} {{ values|join:", " }} {% if forloop.counter|divisibleby:3 %} {% endif %} {% if forloop.last %} {% endif %} {% endfor %} {# {% endif %}#}
{{ values|join:", " }}
{% else %}   {% endif %} {% endwith %}
{% endfor %} {% endfor %} {% elif questiongroup.qg_keyword == 'app_qg_33' %}
{% for key, __ in questiongroup.data_labelled.0 %} {% endfor %} {% for key, values in questiongroup.data_labelled.0 %} {% endfor %}
{{ key }}
{{ values|join:", " }}
{% endif %} {% endfor %} {% for qg_config, qg_rendered in questiongroups %} {% if qg_config.layout == 'not_conditional' %} {{ qg_rendered }} {% endif %} {% endfor %}