{% for param in params %} {% set param_id = param['id'] if 'id' in param else loop.index %} {% set param_name = param_id %} {% set data_key = ' data-key=%s '|format(param_id) %} {% set id_name = 'id=%s name=%s'|format(param_id, param_name) %} {% set type = param.get('type', 'string') %} {% set help = param.get('help', '') %} {% set value = param['value'] %}
{% if type == 'table' %}
{% set table = param %} {% include 'dynamic_table.html' %}
{% else %}
{% set selectpicker = True %} {% include "dynamic_param.html" %}
{% endif %}
{% endfor %}