{% extends "base.html" %} {% block title %}{{ _("Goals") }} · Wealth Dashboard{% endblock %} {% block heading %}{{ _("Savings goals") }}{% endblock %} {% block lede %}
{{ _("An amount by a date, and how it is going. A goal is fed by an account — the holiday account, whose balance is the progress — or by hand, an amount at a time, for a goal that lives inside a bigger account.") }}
{% endblock %} {% block content %} {% macro goal_fields(g) %}{{ '%.0f' | format(g.pct) }} % · {% if g.done %}{{ _("reached") }} {% elif g.monthly_needed is not none %}{{ _f("{amount} a month for {n} months reaches it", amount=money(g.monthly_needed, g.currency), n=g.months_left) }}{% if plan_monthly and g.monthly_needed > plan_monthly %} — {{ _f("more than the {plan} a month of your plan", plan=money(plan_monthly, base_currency)) }}{% endif %} {% elif g.overdue %}{{ _("the date has passed") }} {% else %}{{ _f("{amount} to go", amount=money(g.remaining, g.currency)) }}{% endif %}
{{ _("No goals yet.") }}