{% extends "base.html" %} {% block title %}{{ title }}{% endblock %} {% block page_title %}{{ title }}{% endblock %} {% block topbar_actions %} ← Providers {% endblock %} {% block content %}
{{ form.hidden_tag() }}
{{ form.name.label(class="form-label fw-medium", style="font-size:13px;") }} {{ form.name(class="form-control" + (" is-invalid" if form.name.errors else ""), placeholder="e.g. Pacific Gas & Electric") }} {% for e in form.name.errors %}
{{ e }}
{% endfor %}
{{ form.utility_type.label(class="form-label fw-medium", style="font-size:13px;") }} {{ form.utility_type(class="form-select", id="typeSelect") }}
{{ form.account_number.label(class="form-label fw-medium", style="font-size:13px;") }} {{ form.account_number(class="form-control", placeholder="Customer / meter account no.") }}
{{ form.billing_day.label(class="form-label fw-medium", style="font-size:13px;") }} {{ form.billing_day(class="form-control", type="number", min=1, max=31, placeholder="Day of month") }} Day the bill usually arrives
{{ form.usage_unit.label(class="form-label fw-medium", style="font-size:13px;") }} {{ form.usage_unit(class="form-control", id="unitInput", placeholder="kWh, m³, GB — leave blank for no usage tracking") }} Bills for this provider will record consumption in this unit.
{{ form.default_account_id.label(class="form-label fw-medium", style="font-size:13px;") }} {{ form.default_account_id(class="form-select") }}
{{ form.category_id.label(class="form-label fw-medium", style="font-size:13px;") }} {{ form.category_id(class="form-select") }}
{{ form.notes.label(class="form-label fw-medium", style="font-size:13px;") }} {{ form.notes(class="form-control", rows=2, placeholder="Plan details, contract end date, support number…") }}
{% for c in colors %} {% endfor %}
{{ form.color(type="hidden", id="colorInput") }}
{% for icon_val in icons %} {% endfor %}
{{ form.icon(type="hidden", id="iconInput") }}
{{ form.submit(class="btn btn-primary") }} Cancel
{% endblock %} {% block extra_js %} {% endblock %}