{% macro draw_multipleselect(inputRow, disabled, treeSessionKey) -%} {% import 'flow/genericAdapterTemplateFunctions.html' as gatf with context %} {{ gatf.add_checkbox_control(inputRow) }} {% for option in inputRow.options %} {% if 'attributes' in option %} {% if 'default' not in inputRow %} {% set input_row_default = [] %} {% else %} {% if inputRow.default | isinstance((str, unicode) | type) %} {% set input_row_default = inputRow.default.split(',') %} {% else %} {% set input_row_default = inputRow.default %} {% endif %} {% endif %} {% set isEnabled = ((option.value | string) in input_row_default) or ('default' not in inputRow and (option.value | string)==(inputRow.options[0].value | string)) %} {% if not isEnabled or disabled %} {% set add_attrs = 'disabled ' ~ (' style="display:none;"' | safe) %} {% else %} {% set add_attrs = 'style="display:block;"' | safe %} {% endif %}
{{ option.name }}
{% 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 %}