{% 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)) %}
{% import 'flow/generate_help_tooltip.html' as ght with context %} {{ ght.generate_help_tooltip(option) }} {% if 'attributes' in option and option.attributes %} {{ gatf.generateDisplay(option.attributes, not isEnabled or disabled, "data_" ~ inputRow.name ~ (option.value | string), treeSessionKey) }} {% endif %}
{% endfor %} {%- endmacro %}