{% extends "layout.html" %} {% block title %}OptiWarm - {% if is_new %}Add{% else %}Edit{% endif %} Insulation Data{% endblock %} {% block content %}

{% if is_new %}Add{% else %}Edit{% endif %} Insulation Data

Back to Zone
Zone: {{ zone.name }}

Location: {{ zone.locationid.name }}

Place Type: {{ zone.placetypeid.name }}

Status: {% if zone.active %} Active {% else %} Inactive {% endif %}

Current Temperature: {% set temp = zone.get_current_temperature() %} {% if temp is not none %} {{ "%.1f"|format(temp[0]) }}°C {% else %} No data {% endif %}

{% if is_new %}New{% else %}Edit{% endif %} Insulation Data
{{ form.csrf_token }}
Insulation data helps calculate how quickly a zone loses heat. Enter temperature measurements and the time period it took for the temperature to drop from one value to another.
{{ form.temperature_out(class="form-control", placeholder="Outside temperature in °C") }} {% if form.temperature_out.errors %}
{% for error in form.temperature_out.errors %} {{ error }} {% endfor %}
{% endif %} {{ form.temperature_out.description }}
{{ form.period(class="form-control", placeholder="Time period in hours") }} {% if form.period.errors %}
{% for error in form.period.errors %} {{ error }} {% endfor %}
{% endif %} {{ form.period.description }}
{{ form.temperature_in_from(class="form-control", placeholder="Initial inside temperature in °C") }} {% if form.temperature_in_from.errors %}
{% for error in form.temperature_in_from.errors %} {{ error }} {% endfor %}
{% endif %} {{ form.temperature_in_from.description }}
{{ form.temperature_in_to(class="form-control", placeholder="Final inside temperature in °C") }} {% if form.temperature_in_to.errors %}
{% for error in form.temperature_in_to.errors %} {{ error }} {% endfor %}
{% endif %} {{ form.temperature_in_to.description }}
Cancel
{% endblock %}