{% for param in params %}
{% set id_name = 'id=%s name=%s'|format(param['id'], param['id']) %}
{% if 'id' in param %}
{% set value = param['value'] %}
{% set help = param.get('help', '') %}
{% if 'enum' in param %}
{% if param['enum']['display'] == 'combo' %}
{% else %}
{% for o in param['enum']['choices'] %}
{% set checked = 'checked' if value == o else '' %}
{% endfor %}
{% endif %}
{% else %}
{% set type = param.get('type', 'string') %}
{% if type == 'bool' %}
{% elif type == 'text' %}
{% else %}
{% endif %}
{% endif %}
{% endif %}