firefly-iii/resources/twig/accounts/delete.twig

42 lines
1.7 KiB
Twig
Raw Normal View History

2015-05-01 15:44:35 -05:00
{% extends "./layout/default.twig" %}
2015-06-19 13:59:14 -05:00
{% block breadcrumbs %}
{{ Breadcrumbs.renderIfExists(Route.getCurrentRoute().getName(), account) }}
{% endblock %}
2015-05-01 15:44:35 -05:00
{% block content %}
2015-06-19 13:59:14 -05:00
2015-05-01 16:39:45 -05:00
{{ Form.open({'class' : 'form-horizontal','id' : 'destroy','url' : route('accounts.destroy',account.id)}) }}
2015-05-01 15:44:35 -05:00
<div class="row">
<div class="col-lg-6 col-lg-offset-3 col-md-12 col-sm-12">
2015-06-20 02:54:01 -05:00
<div class="box box-danger">
2015-06-20 00:29:25 -05:00
<div class="box-header with-border">
2015-06-20 02:54:01 -05:00
<h3 class="box-title">{{ trans('form.delete_account', {'name': account.name}) }}</h3>
2015-05-01 15:44:35 -05:00
</div>
2015-06-20 00:29:25 -05:00
<div class="box-body">
<p class="text-danger">
{{ trans('form.permDeleteWarning') }}
</p>
2015-05-01 15:44:35 -05:00
<p>
{{ trans('form.account_areYouSure', {'name': account.name}) }}
2015-05-01 15:44:35 -05:00
</p>
<p>
<input type="submit" name="submit" value="{{ trans('form.deletePermanently') }}" class="btn btn-danger" />
<a href="{{URL.previous()}}" class="btn-default btn">{{ trans('form.cancel') }}</a >
</p>
<p class="small">
2015-05-02 01:09:54 -05:00
{% if account.transactions|length > 0 %}
2015-05-14 09:35:41 -05:00
{{ Lang.choice('form.also_delete_transactions', account.transactions|length, {count: account.transactions|length}) }}
{% endif %}<br />
2015-05-02 01:09:54 -05:00
{% if account.piggyBanks|length > 0 %}
2015-05-14 09:35:41 -05:00
{{ Lang.choice('form.also_delete_piggyBanks', account.piggyBanks|length, {count: account.piggyBanks|length}) }}
2015-05-01 16:39:45 -05:00
{% endif %}
2015-05-01 15:44:35 -05:00
</p>
</div>
</div>
</div>
</div>
2015-05-01 16:39:45 -05:00
</form>
2015-05-01 15:44:35 -05:00
{% endblock %}