anchor.diff:            <%= hidden_field_tag 'simulation[electric_hot_water][holidays]', '' %>
             <%= check_box_tag 'simulation[electric_hot_water][holidays]', 'true', @simulation_configuration[:electric_hot_water][:holidays] , { class: 'custom-control-input', id: 'simulation_electric_hot_water_holidays_actual' } %>
             <label for="simulation_electric_hot_water_holidays_actual" class="custom-control-label">On in holidays?</label>
  +        </div>
  +      </div>
  +    </div>
  +    <%= render 'form_buttons' %>
  +  </div>
  +<% end %>
  +
  +
  +<%= f.fields_for :boiler_pumps do |ff| %>
  +  <div class="tab-pane collapse fade" id="boiler_pumps" role="tabpanel" aria-labelledby="boiler_pumps-tab">
  +    <div class="form-row">
  +      <div class="col-auto">
  +        <%= ff.label :pump_power %>
  +        <div class="input-group">
  +          <%= ff.text_field :pump_power, class: 'form-control', value: @simulation_configuration[:boiler_pumps][:pump_power] %>
  +          <div class="input-group-append">
  +            <span class="input-group-text">kW</span>
  +          </div>
  +        </div>
  +      </div>
  +      <div class="col-auto">
  +        <%= ff.label :start_time %>
  +        <div class="form-group">
  +          <div class="input-group date timepicker" id="boiler_pump_start_time" data-target-input="nearest">
  +             <%= ff.text_field :start_time, class: 'form-control datetimepicker-input', value: @simulation_configuration[:boiler_pumps][:start_time].strftime('%I:%M %p'), data: { target: "#boiler_pump_start_time" } %>
  +            <div class="input-group-append" data-target="#boiler_pump_start_time" data-toggle="datetimepicker">
  +              <div class="input-group-text"><i class="fa fa-clock-o"></i></div>
  +            </div>
  +          </div>
  +        </div>
  +      </div>
  +      <div class="col-auto">
  +        <%= ff.label :end_time %>
  +        <div class="form-group">
  +          <div class="input-group date timepicker" id="boiler_pump_end_time" data-target-input="nearest">
  +            <%= ff.text_field :end_time, class: 'form-control datetimepicker-input', value: @simulation_configuration[:boiler_pumps][:end_time].strftime('%I:%M %p'), data: { target: "#boiler_pump_end_time" } %>
  +            <div class="input-group-append" data-target="#boiler_pump_end_time" data-toggle="datetimepicker">
  +              <div class="input-group-text"><i class="fa fa-clock-o"></i></div>
  +            </div>
  +          </div>
  +        </div>
  +
  +      </div>
  +      <div class="col-auto">
  +        <div class="custom-control custom-checkbox custom-control-inline">
  +          <%= hidden_field_tag 'simulation[boiler_pumps][weekends]', '' %>
  +          <%= check_box_tag 'simulation[boiler_pumps][weekends]', 'true', @simulation_configuration[:boiler_pumps][:weekends] , { class: 'custom-control-input', id: 'simulation_boiler_pumps_weekends_actual' } %>
  +          <label for="simulation_boiler_pumps_weekends_actual" class="custom-control-label">On at weekends?</label>
  +        </div>
  +        <div class="custom-control custom-checkbox custom-control-inline">
  +          <%= hidden_field_tag 'simulation[boiler_pumps][holidays]', '' %>
  +          <%= check_box_tag 'simulation[boiler_pumps][holidays]', 'true', @simulation_configuration[:boiler_pumps][:holidays] , { class: 'custom-control-input', id: 'simulation_boiler_pumps_holidays_actual' } %>
  +          <label for="simulation_boiler_pumps_holidays_actual" class="custom-control-label">On in holidays?</label>
           </div>
         </div>
       </div>
  
positive.code:         <div class="input-group">
            <%= ff.text_field :lumens_per_m2, class: 'form-control', value: @simulation_configuration[:lighting][:lumens_per_m2] %>
            <div class="input-group-append">
              <span class="input-group-text">per m<sup>2</sup></span>
            </div>
          </div>
        </div>
      </div>
      <%= render 'form_buttons' %>
    </div>
  <% end %>
  
  <%= f.fields_for :boiler_pumps do |ff| %>
    <div class="tab-pane collapse fade" id="boiler_pumps" role="tabpanel" aria-labelledby="boiler_pumps-tab">
      <div class="form-row">
        <div class="col-auto">
          <%= ff.label :pump_power %>
          <div class="input-group">
            <%= ff.text_field :pump_power, class: 'form-control', value: @simulation_configuration[:boiler_pumps][:pump_power] %>
            <div class="input-group-append">
              <span class="input-group-text">kW</span>
            </div>
          </div>
        </div>
        <div class="col-auto">
          <%= ff.label :start_time %>
          <div class="form-group">
            <div class="input-group date timepicker" id="boiler_pump_start_time" data-target-input="nearest">
               <%= ff.text_field :start_time, class: 'form-control datetimepicker-input', value: @simulation_configuration[:boiler_pumps][:start_time].strftime('%I:%M %p'), data: { target: "#boiler_pump_start_time" } %>
              <div class="input-group-append" data-target="#boiler_pump_start_time" data-toggle="datetimepicker">
                <div class="input-group-text"><i class="fa fa-clock-o"></i></div>
              </div>
            </div>
          </div>
        </div>
        <div class="col-auto">
          <%= ff.label :end_time %>
          <div class="form-group">
            <div class="input-group date timepicker" id="boiler_pump_end_time" data-target-input="nearest">
              <%= ff.text_field :end_time, class: 'form-control datetimepicker-input', value: @simulation_configuration[:boiler_pumps][:end_time].strftime('%I:%M %p'), data: { target: "#boiler_pump_end_time" } %>
              <div class="input-group-append" data-target="#boiler_pump_end_time" data-toggle="datetimepicker">
                <div class="input-group-text"><i class="fa fa-clock-o"></i></div>
              </div>
            </div>
          </div>
  
        </div>
        <div class="col-auto">
          <div class="custom-control custom-checkbox custom-control-inline">
            <%= hidden_field_tag 'simulation[boiler_pumps][weekends]', '' %>
            <%= check_box_tag 'simulation[boiler_pumps][weekends]', 'true', @simulation_configuration[:boiler_pumps][:weekends] , { class: 'custom-control-input', id: 'simulation_boiler_pumps_weekends_actual' } %>
            <label for="simulation_boiler_pumps_weekends_actual" class="custom-control-label">On at weekends?</label>
          </div>
          <div class="custom-control custom-checkbox custom-control-inline">
            <%= hidden_field_tag 'simulation[boiler_pumps][holidays]', '' %>
            <%= check_box_tag 'simulation[boiler_pumps][holidays]', 'true', @simulation_configuration[:boiler_pumps][:holidays] , { class: 'custom-control-input', id: 'simulation_boiler_pumps_holidays_actual' } %>
            <label for="simulation_boiler_pumps_holidays_actual" class="custom-control-label">On in holidays?</label>
          </div>
        </div>
      </div>
      <%= render 'form_buttons' %>
    </div>
  <% end %>
  
  <%= f.fields_for :security_lighting do |ff| %>
    <div class="tab-pane collapse fade" id="security_lighting" role="tabpanel" aria-labelledby="security_lighting-tab">
  
negative.code:         <div class="input-group">
            <%= ff.text_field :ambient_threshold, class: 'form-control', value: @simulation_configuration[:security_lighting][:ambient_threshold] %>
            <div class="input-group-append">
              <span class="input-group-text">lumens per m<sup>2</sup> (lux)</span>
            </div>
          </div>
        </div>
  