mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-08 23:24:07 -06:00
62 lines
2.3 KiB
Twig
62 lines
2.3 KiB
Twig
|
{% 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>
|
||
|
<i class="fa fa-sort-amount-asc fa-fw"></i> <a href="{{ route('piggy-banks.create') }}" class="btn btn-success">Create new piggy bank</a>
|
||
|
</p>
|
||
|
</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">Piggy banks</div>
|
||
|
{% 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">
|
||
|
<i class="fa fa-fw fa-money"></i> Account status
|
||
|
</div>
|
||
|
<table class="table table-striped">
|
||
|
<tr>
|
||
|
<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>
|
||
|
</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>
|
||
|
|
||
|
<!-- this is the modal for the add/remove money routine: -->
|
||
|
<div class="modal fade" id="moneyManagementModal">
|
||
|
|
||
|
|
||
|
|
||
|
</div><!-- /.modal -->
|
||
|
|
||
|
{% endblock %}
|
||
|
{% block scripts %}
|
||
|
<script src="js/jquery-ui.min.js" type="text/javascript"></script>
|
||
|
<script type="text/javascript" src="js/piggy-banks.js"></script>
|
||
|
{% endblock %}
|