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

{% if is_new %}New{% else %}Edit{% endif %} Fuel Type

Back to Fuel Types
{{ form.csrf_token }}
{{ form.name(class="form-control", placeholder="Enter fuel type name") }} {% if form.name.errors %}
{% for error in form.name.errors %} {{ error }} {% endfor %}
{% endif %} {{ form.name.description }}
{{ form.unittype(class="form-control") }} {% if form.unittype.errors %}
{% for error in form.unittype.errors %} {{ error }} {% endfor %}
{% endif %} {{ form.unittype.description }}
{{ form.description(class="form-control", placeholder="Enter description", rows=3) }} {% if form.description.errors %}
{% for error in form.description.errors %} {{ error }} {% endfor %}
{% endif %} {{ form.description.description }}
Cost Configuration
{{ form.add_cost_unit(class="form-control", placeholder="Additional fee per unit") }} {% if form.add_cost_unit.errors %}
{% for error in form.add_cost_unit.errors %} {{ error }} {% endfor %}
{% endif %} {{ form.add_cost_unit.description }}
{{ form.add_cost_period(class="form-control", placeholder="Additional fee per period") }} {% if form.add_cost_period.errors %}
{% for error in form.add_cost_period.errors %} {{ error }} {% endfor %}
{% endif %} {{ form.add_cost_period.description }}
{{ form.add_cost_period_type(class="form-control") }} {% if form.add_cost_period_type.errors %}
{% for error in form.add_cost_period_type.errors %} {{ error }} {% endfor %}
{% endif %} {{ form.add_cost_period_type.description }}
Price Update Configuration
{{ form.update_url(class="form-control", placeholder="URL for automatically updating prices") }} {% if form.update_url.errors %}
{% for error in form.update_url.errors %} {{ error }} {% endfor %}
{% endif %} {{ form.update_url.description }}
{{ form.update_interval(class="form-control", placeholder="Time interval for updates HH:MM") }} {% if form.update_interval.errors %}
{% for error in form.update_interval.errors %} {{ error }} {% endfor %}
{% endif %} {{ form.update_interval.description }}
{{ form.submit(class="btn btn-primary") }} Cancel
{% endblock %}