{{form_conditional.if_sensor_measurement.label(class_='control-label')}}
{% set edge_sensor = [] %}
{% for each_choice, value in choices_input.items() if each_choice.split(',')[1] == 'edge' -%}
{% do edge_sensor.append(1) %}
{% endfor -%}
{% if edge_sensor %}
{{_('Select One')}}
{% for each_choice, value in choices_input.items() if each_choice.split(',')[1] == 'edge' -%}
{{value}}
{% endfor -%}
{% else %}
{{_('None Available')}}
{% endif %}
{{form_conditional.if_sensor_edge_detected.label(class_='control-label')}}
{{_('Rising')}}
{{_('Falling')}}
{{_('Both')}}
{{form_conditional.if_sensor_gpio_state.label(class_='control-label')}}
{{_('HIGH (3.3 volts)')}}
{{_('LOW (0 volts)')}}
{{form_conditional.if_sensor_period.label(class_='control-label')}}
{{form_conditional.if_sensor_period(class_='form-control', value=each_cond.if_sensor_period, **{'title':_('The duration (seconds) between checking whether the conditional is true'), 'size':'3'})}}