2015-05-01 15:44:35 -05:00
{% extends "./layout/default.twig" %}
{% block content %}
2015-05-01 16:39:45 -05:00
{{ B readcrumbs .renderIfExists ( R oute .getCurrentRoute ( ) .getName ( ) , account ) }}
{{ F orm .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-md-12 col-sm-12">
<div class="panel panel-red">
<div class="panel-heading">
2015-05-01 16:39:45 -05:00
Delete account " {{ account .name }} "
2015-05-01 15:44:35 -05:00
</div>
<div class="panel-body">
<p>
2015-05-01 16:39:45 -05:00
Are you sure that you want to delete the {{ account .accountType .type | lower }} " {{ account .name }} "?
2015-05-01 15:44:35 -05:00
</p>
2015-05-02 01:09:54 -05:00
{% if account .transactions | length > 0 %}
2015-05-01 15:44:35 -05:00
<p class="text-danger">
2015-05-02 01:09:54 -05:00
{{ account .accountType .type | capitalize }} " {{ account .name }} " still has {{ account .transactions | length }} transaction(s) associated to it. These will be deleted as well.
2015-05-01 15:44:35 -05:00
</p>
2015-05-01 16:39:45 -05:00
{% endif %}
2015-05-02 01:09:54 -05:00
{% if account .piggyBanks | length > 0 %}
2015-05-01 15:44:35 -05:00
<p class="text-danger">
2015-05-02 01:09:54 -05:00
{{ account .accountType .type | capitalize }} " {{ account .name }} " still has {{ account .piggyBanks | length }} piggy bank(s) associated to it. These will be deleted as well.
2015-05-01 15:44:35 -05:00
</p>
2015-05-01 16:39:45 -05:00
{% endif %}
2015-05-01 15:44:35 -05:00
<p>
<button type="submit" class="btn btn-default btn-danger">Delete permanently</button>
2015-05-01 16:39:45 -05:00
<a href=" {{ U R L .previous ( ) }} " class="btn-default btn">Cancel</a >
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 %}