app/views/schools/temperature_observations/_temperature_recording_fields.html.erb
<fieldset>
<div class="form-row justify-content-center">
<div class="col-lg-4 form-group">
<%= temperature_form.label :centigrade, temperature_form.object.location.name, required: false, class: 'h4 mt-4'%>
<%= temperature_form.hidden_field :location_id, value: temperature_form.object.location.id %>
</div>
<div class="col-lg-3 form-group">
<%= temperature_form.input :centigrade, as: :number, required: false, label: t('schools.temperature_observations.temperature_recording_fields.temperature') do %>
<div class="input-group">
<div class="input-group-prepend">
<span class="input-group-text"><%= fa_icon('temperature-high') %></span>
</div>
<%= temperature_form.input_field :centigrade, maxlength: 2, min: 0, max: 50, class: "form-control form-control-lg temperature" %>
<div class="input-group-append">
<span class="input-group-text">° C</span>
</div>
</div>
<% end %>
<% if temperature_form.index.zero? %>
<small class='form-text text-muted'><%= t('schools.temperature_observations.temperature_recording_fields.temperature_in_centigrade_message') %>.</small>
<% end %>
</div>
</div>
</fieldset>
<hr />