{% extends "./layout/default.twig" %} {% block breadcrumbs %} {{ Breadcrumbs.renderIfExists(Route.getCurrentRoute().getName(), account) }} {% endblock %} {% block content %} {{ Form.open({'class' : 'form-horizontal','id' : 'destroy','url' : route('accounts.destroy',account.id)}) }}

{{ trans('form.delete_account', {'name': account.name}) }}

{{ trans('form.permDeleteWarning') }}

{{ trans('form.account_areYouSure', {'name': account.name}) }}

{% if account.transactions|length > 0 or account.piggyBanks|length > 0 %}

{% if account.transactions|length > 0 %} {{ Lang.choice('form.also_delete_transactions', account.transactions|length, {count: account.transactions|length}) }} {% endif %}
{% if account.piggyBanks|length > 0 %} {{ Lang.choice('form.also_delete_piggyBanks', account.piggyBanks|length, {count: account.piggyBanks|length}) }} {% endif %}

{% endif %} {% if account.transactions|length > 0 %}

{{ 'save_transactions_by_moving'|_ }}

{{ Form.select('move_account_before_delete', accountList, null, {class: 'form-control'}) }}

{% else %} {% endif %}
{{ Form.close|raw }} {% endblock %}