{% extends "base.html" %} {% block title %}{{ title }}{% endblock %} {% block page_title %}{{ title }}{% 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. Main Checking") }} {% for e in form.name.errors %}
{{ e }}
{% endfor %}
{{ form.account_type.label(class="form-label fw-medium", style="font-size:13px;") }} {{ form.account_type(class="form-select" + (" is-invalid" if form.account_type.errors else "")) }}
{% for c in colors %} {% endfor %}
{{ form.color(type="hidden", id="colorInput") }}
{% for icon_val, icon_label in icons %} {% endfor %}
{{ form.icon(type="hidden", id="iconInput") }}
{{ form.notes.label(class="form-label fw-medium", style="font-size:13px;") }} {{ form.notes(class="form-control", rows=2, placeholder="Optional notes") }}
{% if not account %}
{{ form.opening_balance.label(class="form-label fw-medium", style="font-size:13px;") }}
{{ current_user.currency_symbol }} {{ form.opening_balance(class="form-control", placeholder="0.00", id="openingBalance") }}
Current real-world balance. Leave at 0 if you'll enter all transactions from scratch. For credit cards, enter a negative value if you currently owe money (e.g. -500).
{% endif %}
{{ form.submit(class="btn btn-primary") }} Cancel
{% endblock %} {% block extra_js %} {% endblock %}