{% 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 %}#}
{# {{ values|join:", " }} | #}
{# {% 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 %}#}
{% else %}
{% endif %}
{% endwith %}
{% endfor %}
{% endfor %}
{% elif questiongroup.qg_keyword == 'app_qg_33' %}