{% if 'params' in definition %} {% set params = definition['params'] %} {% include 'dynamic_form_params.html' %} {% else %} {% set sections = definition['sections'] %}
{% for section in sections %} {% set section_id = section['label']|id_from_label %} {% set active_str = "show active" if loop.index == 1 else "" %}
{% set params = section['params'] %} {% include 'dynamic_form_params.html' %}
{% endfor %}
{% endif %}