<h3><%= Output::INDEX_NAME[o.object.output_index].capitalize %> Output</h3>

<div class='form-group'>
  <div class='col-sm-4'>
    <%= o.label :sensor, class: 'col-sm-2 control-label' %>
  </div>
  <div class='col-sm-8'>
    <%= o.select :sensor_id, @device.sensors.collect {|s| ["Sensor #{s.sensor_index+1}", s.id]}, {}, class: 'form-control' %>
  </div>
</div>

<div class='form-group'>
  <div class='col-sm-4'>
    <%= o.label :function, class: 'col-sm-2 control-label' %>
  </div>
  <div class='col-sm-8'>
    <%= o.select :function, Output::FUNCTIONS.values, {}, class: 'form-control' %>
  </div>
</div>

<div class='form-group'>
  <div class='col-sm-4'>
    <%= o.label :cycle_delay, class: 'col-sm-2 control-label' %>
  </div>
  <div class='col-sm-8'>
    <%= o.text_field :cycle_delay, class: 'form-control' %>
  </div>
</div>

<h3><%= Output::INDEX_NAME[o.object.output_index].capitalize %> Output</h3>

<div class='form-group'>
  <div class='col-sm-4'>
    <%= o.label :sensor, class: 'col-sm-2 control-label' %>
  </div>
  <div class='col-sm-8'>
    <%= o.select :sensor_id, @device.sensors.collect {|s| ["Sensor #{s.sensor_index+1}", s.id]}, {}, class: 'form-control' %>
  </div>
</div>

<div class='form-group'>
  <div class='col-sm-4'>
    <%= o.label :function, class: 'col-sm-2 control-label' %>
  </div>
  <div class='col-sm-8'>
    <%= o.select :function, Output::FUNCTIONS.values, {}, class: 'form-control' %>
  </div>
</div>

<div class='form-group'>
  <div class='col-sm-4'>
    <%= o.label :cycle_delay, class: 'col-sm-2 control-label' %>
  </div>
  <div class='col-sm-8'>
    <div class="input-group">
      <%= o.text_field :cycle_delay, class: 'form-control' %>
      <span class="input-group-addon">minutes</span>
    </div>
  </div>
</div>

Add cycle delay input group hint.
Add cycle delay input group hint.

