{% macro draw_simple_select(inputRow, disabled, parentDivId, treeSessionKey) -%} {% import 'flow/genericAdapterTemplateFunctions.html' as gatf with context %} {% include 'flow/genericAdapterTemplateFunctions.html' %} {% if (inputRow.options | length) > 4 %} {% if inputRow.options %} {% endif %} {% else %} {% for option in inputRow.options %} {% endfor %} {% endif %} {{ gatf.add_checkbox_control(inputRow) }} {% for option in inputRow.options %} {% set isEnabled =('default' in inputRow and ((option.value | string)==(inputRow.default | string))) or ('default' not in inputRow and (option.value | string)==(inputRow.options[0].value | string)) %}