{% if not name_prefix %} {% set name_prefix = "" %} {% endif %} {% if each_option['type'] == 'message' %}
{{each_option['default_value']|safe}}
{% elif each_option['type'] == 'new_line' %}
{% elif each_option['type'] in ['float', 'integer', 'text'] %}
{% elif each_option['type'] == 'multiline_text' %}
{% elif each_option['type'] == 'bool' %}
{% elif each_option['type'] == 'select' %}
{% elif each_option['type'] == 'select_custom_choices' %}
{% elif each_option['type'] == 'select_measurement' %} {% set form_choices = [ ("Input", choices_input), ("Function", choices_function), ("Output", choices_output), ("Output_Channels_Measurements", choices_output_channels_measurements), ("Output_PWM", choices_output_pwm), ("PID", choices_pid) ] %}
{% elif each_option['type'] == 'select_measurement_from_this_input' %}
{% elif each_option['type'] == 'select_channel' %}
{% elif each_option['type'] == 'select_measurement_channel' %}
{% elif each_option['type'] == 'select_multi_measurement' %} {% set multiselect_size = 0 %} {% if 'Input' in each_option['options_select'] %} {% set multiselect_size = multiselect_size + choices_input|length %} {% endif %} {% if 'Function' in each_option['options_select'] %} {% set multiselect_size = multiselect_size + choices_function|length %} {% endif %} {% if 'Output' in each_option['options_select'] %} {% set multiselect_size = multiselect_size + choices_output|length %} {% endif %} {% if 'PID' in each_option['options_select'] %} {% set multiselect_size = multiselect_size + choices_pid|length %} {% endif %} {% if 'Tag' in each_option['options_select'] %} {% set multiselect_size = multiselect_size + choices_tag|length %} {% endif %} {% set form_choices = [ ("Input", choices_input), ("Function", choices_function), ("Output", choices_output), ("PID", choices_pid), ("Tag", choices_tag) ] %}
{% elif each_option['type'] == 'select_device' %} {% set form_choices = [ ("Input", table_input.query.all()), ("Output", table_output.query.all()), ("PID", table_pid.query.all()), ("Trigger", table_trigger.query.all()), ("Camera", table_camera.query.all()), ("Function", table_function.query.all()), ("Conditional", table_conditional.query.all()) ] %}
{% elif each_option['type'] == 'select_type_measurement' %}
{% elif each_option['type'] == 'select_type_unit' %}
{% elif each_option['type'] == 'button' %}
{% endif %}