{% if 'location' in dict_inputs[each_input.device]['options_disabled'] or 'location' in dict_inputs[each_input.device]['options_enabled'] %}
{% if 'location' in dict_inputs[each_input.device]['options_enabled'] %} {% if each_input.interface == '1WIRE' %}
{% elif 'location' in dict_inputs[each_input.device] %} {% if dict_inputs[each_input.device]['location']['options']|length > 1 %} {{form_mod_input.location.label(class_='control-label')}}
{% else %}
{{form_mod_input.location(class_='form-control', value=each_input.location, **{'title': _(dict_inputs[each_input.device]['location']['phrase'])})}}
{% endif %} {% endif %} {% else %} {{form_mod_input.location.label(class_='control-label')}}
{{form_mod_input.location(class_='form-control', value=each_input.location, disabled=True, **{'title': dict_inputs[each_input.device]['location']['phrase']})}}
{% endif %}
{% endif %}