2016-11-06 08:11:43 +01:00
|
|
|
{% extends "./layout/default" %}
|
2015-06-19 20:59:14 +02:00
|
|
|
|
|
|
|
{% block breadcrumbs %}
|
2017-12-23 20:46:52 +01:00
|
|
|
{{ Breadcrumbs.render(Route.getCurrentRoute.getName) }}
|
2015-06-19 20:59:14 +02:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2017-02-23 07:30:08 +01:00
|
|
|
{% if piggyBanks.count == 0 %}
|
|
|
|
{% include 'partials.empty' with {what: 'default', type: 'piggies',route: route('piggy-banks.create')} %}
|
|
|
|
{% else %}
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12 col-md-12 col-sm-12">
|
|
|
|
<div class="box">
|
|
|
|
<div class="box-header with-border">
|
|
|
|
<h3 class="box-title">{{ 'piggyBanks'|_ }}</h3>
|
|
|
|
</div>
|
|
|
|
<div class="box-body no-padding">
|
|
|
|
{% include 'list/piggy-banks' %}
|
|
|
|
</div>
|
2015-06-21 10:50:45 +02:00
|
|
|
</div>
|
2015-05-02 10:53:54 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2017-02-23 07:30:08 +01:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-12 col-md-12 col-sm-12">
|
|
|
|
<div class="box">
|
|
|
|
<div class="box-header with-border">
|
|
|
|
<h3 class="box-title">{{ 'account_status'|_ }}</h3>
|
|
|
|
</div>
|
|
|
|
<div class="box-body table-responsive no-padding">
|
2017-08-12 07:47:42 +02:00
|
|
|
<table class="table table-hover" id="accountStatus">
|
2017-02-23 07:30:08 +01:00
|
|
|
<thead>
|
2015-06-21 10:50:45 +02:00
|
|
|
<tr>
|
2017-02-23 07:30:08 +01:00
|
|
|
<th>{{ 'account'|_ }}</th>
|
|
|
|
<th style="text-align:right;" class="hidden-sm hidden-xs">{{ 'balance'|_ }}</th>
|
|
|
|
<th style="text-align:right;">{{ 'left_for_piggy_banks'|_ }}</th>
|
|
|
|
<th style="text-align:right;" class="hidden-sm hidden-xs">{{ 'sum_of_piggy_banks'|_ }}</th>
|
|
|
|
<th style="text-align:right;" class="hidden-sm hidden-xs">{{ 'saved_so_far'|_ }}</th>
|
|
|
|
<th style="text-align:right;" class="hidden-sm hidden-xs">{{ 'left_to_save'|_ }}</th>
|
2015-06-21 10:50:45 +02:00
|
|
|
</tr>
|
2017-02-23 07:30:08 +01:00
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for id,info in accounts %}
|
|
|
|
<tr>
|
|
|
|
<td><a href="{{ route('accounts.show',id) }}" title="{{ info.name }}">{{ info.name }}</a></td>
|
|
|
|
<td style="text-align:right;" class="hidden-sm hidden-xs">{{ info.balance|formatAmount }}</td>
|
|
|
|
<td style="text-align:right;">{{ info.leftForPiggyBanks|formatAmount }}</td>
|
|
|
|
<td style="text-align:right;" class="hidden-sm hidden-xs">{{ info.sumOfTargets|formatAmount }}</td>
|
|
|
|
<td style="text-align:right;" class="hidden-sm hidden-xs">{{ info.sumOfSaved|formatAmount }}</td>
|
|
|
|
<td style="text-align:right;" class="hidden-sm hidden-xs">{{ info.leftToSave|formatAmount }}</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
2015-06-21 10:50:45 +02:00
|
|
|
</div>
|
2015-05-02 10:53:54 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2017-02-23 07:30:08 +01:00
|
|
|
{% endif %}
|
2015-05-02 10:53:54 +02:00
|
|
|
{% endblock %}
|
|
|
|
{% block scripts %}
|
2017-09-12 19:59:07 +02:00
|
|
|
<script src="js/lib/jquery-ui.min.js?v={{ FF_VERSION }}" type="text/javascript"></script>
|
|
|
|
<script type="text/javascript" src="js/ff/piggy-banks/index.js?v={{ FF_VERSION }}"></script>
|
2015-05-05 12:51:57 +02:00
|
|
|
{% endblock %}
|