{% if 'custom_options' in dict_inputs[each_input.device]['options_enabled'] %} {% for each_option in dict_inputs[each_input.device]['custom_options'] %} {% if each_option['type'] in ['float', 'integer', 'text'] %}