{% extends "base.html" %} {% block title %}{{ title }}{% endblock %} {% block page_title %}{{ title }}{% endblock %} {% block topbar_actions %} ← Bills {% endblock %} {% block content %}
{{ form.hidden_tag() }}
{{ form.provider_id.label(class="form-label fw-medium", style="font-size:13px;") }} {{ form.provider_id(class="form-select" + (" is-invalid" if form.provider_id.errors else ""), id="providerSelect") }} {% for e in form.provider_id.errors %}
{{ e }}
{% endfor %}
{{ form.period_start.label(class="form-label fw-medium", style="font-size:13px;") }} {{ form.period_start(class="form-control" + (" is-invalid" if form.period_start.errors else "")) }} {% for e in form.period_start.errors %}
{{ e }}
{% endfor %}
{{ form.period_end.label(class="form-label fw-medium", style="font-size:13px;") }} {{ form.period_end(class="form-control" + (" is-invalid" if form.period_end.errors else "")) }} {% for e in form.period_end.errors %}
{{ e }}
{% endfor %}
{{ form.amount.label(class="form-label fw-medium", style="font-size:13px;") }}
{{ current_user.currency_symbol }} {{ form.amount(class="form-control" + (" is-invalid" if form.amount.errors else ""), placeholder="0.00", id="amountInput") }}
{% for e in form.amount.errors %}
{{ e }}
{% endfor %}
{{ form.due_date.label(class="form-label fw-medium", style="font-size:13px;") }} {{ form.due_date(class="form-control") }}
{{ form.usage.label(class="form-label fw-medium", style="font-size:13px;") }} {{ form.usage(class="form-control", placeholder="0.000", id="usageInput") }}
{{ form.meter_start.label(class="form-label fw-medium", style="font-size:13px;") }} {{ form.meter_start(class="form-control", placeholder="Previous reading", id="meterStart") }}
{{ form.meter_end.label(class="form-label fw-medium", style="font-size:13px;") }} {{ form.meter_end(class="form-control" + (" is-invalid" if form.meter_end.errors else ""), placeholder="Current reading", id="meterEnd") }} {% for e in form.meter_end.errors %}
{{ e }}
{% endfor %}
Enter usage directly, or both meter readings — readings win and fill in usage automatically.
{{ form.notes.label(class="form-label fw-medium", style="font-size:13px;") }} {{ form.notes(class="form-control", rows=2, placeholder="Rate plan, unusual charges, meter notes…") }}
{{ form.submit(class="btn btn-primary") }} {% if not bill %} {% endif %} Cancel
{% endblock %} {% block extra_js %} {% endblock %}