{% if 'resolution' in dict_inputs[each_input.device]['options_enabled'] %} {% if dict_inputs[each_input.device]['resolution']|length == 1 %}