2015-05-02 03:53:54 -05:00
|
|
|
{% extends "./layout/default.twig" %}
|
|
|
|
{% block content %}
|
|
|
|
{{ Breadcrumbs.renderIfExists(Route.getCurrentRoute.getName) }}
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12 col-md-12 col-sm-12">
|
|
|
|
<p>
|
2015-05-25 02:23:45 -05:00
|
|
|
<a href="{{ route('piggy-banks.create') }}" class="btn btn-success"><i class="fa fa-sort-amount-asc fa-fw"></i> {{ 'new_piggy_bank'|_ }}</a>
|
2015-05-02 03:53:54 -05:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12 col-md-12 col-sm-12">
|
|
|
|
<div class="panel panel-default">
|
2015-05-14 10:52:50 -05:00
|
|
|
<div class="panel-heading">{{ 'piggyBanks'|_ }}</div>
|
2015-05-02 03:53:54 -05:00
|
|
|
{% include 'list/piggy-banks.twig' %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12 col-md-12 col-sm-12">
|
|
|
|
<div class="panel panel-default">
|
|
|
|
<div class="panel-heading">
|
2015-05-25 02:23:45 -05:00
|
|
|
<i class="fa fa-fw fa-money"></i> {{ 'account_status'|_ }}
|
2015-05-02 03:53:54 -05:00
|
|
|
</div>
|
|
|
|
<table class="table table-striped">
|
|
|
|
<tr>
|
2015-05-25 02:23:45 -05:00
|
|
|
<th>{{ 'account'|_ }}</th>
|
|
|
|
<th>{{ 'balance'|_ }}</th>
|
|
|
|
<th>{{ 'left_for_piggy_banks'|_ }}</th>
|
|
|
|
<th>{{ 'sum_of_piggy_banks'|_ }}</th>
|
|
|
|
<th>{{ 'saved_so_far'|_ }}</th>
|
|
|
|
<th>{{ 'left_to_save'|_ }}</th>
|
2015-05-02 03:53:54 -05:00
|
|
|
</tr>
|
|
|
|
{% for id,info in accounts %}
|
|
|
|
<tr>
|
|
|
|
<td><a href="{{ route('accounts.show',id) }}">{{ info.name }}</a></td>
|
|
|
|
<td>{{ info.balance|formatAmount }}</td>
|
|
|
|
<td>{{ info.leftForPiggyBanks|formatAmount }}</td>
|
|
|
|
<td>{{ info.sumOfTargets|formatAmount }}</td>
|
|
|
|
<td>{{ info.sumOfSaved|formatAmount }}</td>
|
|
|
|
<td>{{ info.leftToSave|formatAmount }}</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|
|
|
|
{% block scripts %}
|
|
|
|
<script src="js/jquery-ui.min.js" type="text/javascript"></script>
|
|
|
|
<script type="text/javascript" src="js/piggy-banks.js"></script>
|
2015-05-05 05:51:57 -05:00
|
|
|
{% endblock %}
|