{% extends "base.html" %} {% block title %}{{ _("Edit") }} {{ account.name }}{% endblock %} {% block heading %}{{ _("Edit") }} {{ account.name }}{% endblock %} {% block content %}
{% if error %}
{{ error }}
{% endif %} {% if account.ledger_until %}

{{ _("Rows up to this day were moved in from another app under its own ids. An import or a sync covering those days leaves them alone, so nothing is booked twice. Clear it to let everything in.") }}

{% else %} {% endif %}
{{ _("Whose is it") }} {% if people %} {% for p in people %} {% endfor %}

{{ _("Tick one person, or several for a joint account. Nobody ticked means it shows only under Everyone.") }}

{% else %}

{{ _("No people yet. Add the household under Settings → People, and each account can be somebody's.") }}

{% endif %}

{{ _("Delete this account") }}

{% if counts.empty %} {# Nothing to lose, so nothing to confirm. A ceremony in front of an empty account is what teaches people to click through the one in front of a full one. #}

{{ _("This account holds nothing — no transactions, no balance readings, no bank connection. There is nothing to lose by removing it.") }}

{% else %}
{{ _("This cannot be undone.") }} {%- set parts = [] %} {%- if counts.transactions %}{% set _x = parts.append(_n(counts.transactions, "{n} transaction", "{n} transactions")) %}{% endif %} {%- if counts.balances %}{% set _x = parts.append(_n(counts.balances, "{n} balance reading", "{n} balance readings")) %}{% endif %} {% if parts %} {{ _f("Deleting {name} also removes {what}.", name=account.name, what=(_f("{a} and {b}", a=parts[0], b=parts[1]) if parts|length > 1 else parts[0])) }} {% else %} {{ _f("Deleting {name} removes everything on it.", name=account.name) }} {% endif %} {% if counts.links %} {{ _("The bank connection goes with it. The consent itself stays alive at your bank until it expires or you revoke it there, and re-connecting means going through your bank's login again.") }} {% endif %} {{ _("There is no undo and no copy of this anywhere else.") }}
{% endif %}
{% endblock %}