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

{% if is_new %}New{% else %}Edit{% endif %} Consumption Data

Back to Consumption Data
{{ form.csrf_token }}
{{ form.boilerid(class="form-control") }} {% if form.boilerid.errors %}
{% for error in form.boilerid.errors %} {{ error }} {% endfor %}
{% endif %} {{ form.boilerid.description }}
{{ form.temperature(class="form-control", placeholder="Temperature setting in degrees") }} {% if form.temperature.errors %}
{% for error in form.temperature.errors %} {{ error }} {% endfor %}
{% endif %} {{ form.temperature.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.consumption(class="form-control", placeholder="Fuel consumption for this period") }}
-
{% if form.consumption.errors %}
{% for error in form.consumption.errors %} {{ error }} {% endfor %}
{% endif %} {{ form.consumption.description }}
The consumption units should match the fuel type of the selected boiler.
{{ form.submit(class="btn btn-primary") }} Cancel
{% endblock %} {% block scripts %} {% endblock %}