{% 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. Vacation Fund") }} {% for e in form.name.errors %}
{{ e }}
{% endfor %}
{{ form.target_amount.label(class="form-label fw-medium", style="font-size:13px;") }}
{{ current_user.currency_symbol }} {{ form.target_amount(class="form-control", placeholder="0.00") }}
{{ form.target_date.label(class="form-label fw-medium", style="font-size:13px;") }} {{ form.target_date(class="form-control") }}
{{ form.linked_account_id.label(class="form-label fw-medium", style="font-size:13px;") }} {{ form.linked_account_id(class="form-select") }}
{{ form.description.label(class="form-label fw-medium", style="font-size:13px;") }} {{ form.description(class="form-control", rows=2, placeholder="What are you saving for?") }}
{% 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 %}