{% if item.active == 1 %}
{% if item.type == 0 %} {% if item.value_class == 'BOOL' or item.value_class == 'BOOLEAN' %} {% include "button.html" %} {% elif item.control_element_options.dropdown and item.dictionary %} {% include "dropdown.html" with last_value=item.value %} {% else %} {% include "value_field.html" %} {% endif %} {% elif item.type == 1 %} {% if not item.display_value_options %} {% if item.value_class == 'BOOL' or item.value_class == 'BOOLEAN' %} {% include "button.html" %} {% else %} {% include "value_field.html" %} {% endif %} {% else %} {% if item.display_value_options.type == 0 %} {% if item.value_class == 'BOOL' or item.value_class == 'BOOLEAN' or item.display_value_options.color_only == 1 %} {% include "button.html" %} {% else %} {% include "value_field.html" %} {% endif %} {% elif item.display_value_options.type == 3 %} {% include "gauge.html" with gauge=item %} {% endif %} {% endif %} {% else %} Control item type is wrong : {{ item.type }} ! {% endif %} {% endif %}