{{ question }}

{% for parent_category in options %} {% set id_prefix = '{}-{}'.format(id, loop.index) %} {% if parent_category.options %}

{{ parent_category.label }}

{{ parent_category.options|length }} categories
{% else %} {% set option = parent_category %} {% with input_value = option.value if 'value' in option else option.label, id="input-{}-{}".format(id_prefix, loop.index), input_type="checkbox", question_advice=None, hint=None %} {% include 'toolkit/forms/_selection-button.html' %} {% endwith %} {% endif %} {% endfor %}