{% extends "base.html" %} {% block title %}{{ title }}{% endblock %} {% block page_title %}{{ title }}{% endblock %} {% block content %}
{{ form.hidden_tag() }} {{ form.transaction_type() }}
{{ form.description.label(class="form-label fw-medium", style="font-size:13px;") }} {{ form.description(class="form-control" + (" is-invalid" if form.description.errors else ""), placeholder="What was this for?") }} {% for e in form.description.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") }}
{% for e in form.amount.errors %}
{{ e }}
{% endfor %}
{{ form.date.label(class="form-label fw-medium", style="font-size:13px;") }} {{ form.date(class="form-control" + (" is-invalid" if form.date.errors else "")) }}
{{ form.account_id.label(class="form-label fw-medium", style="font-size:13px;") }} {{ form.account_id(class="form-select" + (" is-invalid" if form.account_id.errors else "")) }} {% for e in form.account_id.errors %}
{{ e }}
{% endfor %}
{{ 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="Optional notes") }}
{% if txn and txn.receipt %}
{% elif txn %}
PNG, JPG, GIF, PDF — max 10MB
{% endif %}
Cancel
{% endblock %}