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

{% if is_new %}New Zone{% else %}Edit {{ zone.name }}{% endif %}

{% if is_new %} Back to Zones {% else %} Back to Zone {% endif %}
{{ form.csrf_token }}
{{ form.name(class="form-control", placeholder="Enter zone name") }} {% if form.name.errors %}
{% for error in form.name.errors %} {{ error }} {% endfor %}
{% endif %} {{ form.name.description }}
{{ form.locationid(class="form-control") }} {% if form.locationid.errors %}
{% for error in form.locationid.errors %} {{ error }} {% endfor %}
{% endif %} {{ form.locationid.description }}
{{ form.placetypeid(class="form-control") }} {% if form.placetypeid.errors %}
{% for error in form.placetypeid.errors %} {{ error }} {% endfor %}
{% endif %} {{ form.placetypeid.description }}
{{ form.phone(class="form-control", placeholder="Contact phone number") }} {% if form.phone.errors %}
{% for error in form.phone.errors %} {{ error }} {% endfor %}
{% endif %} {{ form.phone.description }}
{{ form.description(class="form-control", rows=3, placeholder="Description of the zone") }} {% if form.description.errors %}
{% for error in form.description.errors %} {{ error }} {% endfor %}
{% endif %} {{ form.description.description }}
{{ form.cmdb_id(class="form-control", placeholder="ID in external CMDB") }} {% if form.cmdb_id.errors %}
{% for error in form.cmdb_id.errors %} {{ error }} {% endfor %}
{% endif %} {{ form.cmdb_id.description }}
{{ form.notification(class="form-control", placeholder="Notification configuration for alerts") }} {% if form.notification.errors %}
{% for error in form.notification.errors %} {{ error }} {% endfor %}
{% endif %} {{ form.notification.description }}
{{ form.nominal_valume(class="form-control", placeholder="Volume in cubic meters") }} {% if form.nominal_valume.errors %}
{% for error in form.nominal_valume.errors %} {{ error }} {% endfor %}
{% endif %} {{ form.nominal_valume.description }}
{{ form.sensor_average(class="custom-control-input", id="sensor_average") }}
{% if form.sensor_average.errors %}
{% for error in form.sensor_average.errors %} {{ error }} {% endfor %}
{% endif %} {{ form.sensor_average.description }}
{{ form.active(class="custom-control-input", id="active") }}
{% if form.active.errors %}
{% for error in form.active.errors %} {{ error }} {% endfor %}
{% endif %} {{ form.active.description }}
{% if is_new %} Cancel {% else %} Cancel {% endif %}
{% endblock %}