2016-11-06 16:17:22 +01:00
|
|
|
{% extends "./layout/default" %}
|
2015-06-19 20:59:14 +02:00
|
|
|
|
|
|
|
|
{% block breadcrumbs %}
|
2018-07-14 17:23:44 +02:00
|
|
|
{{ Breadcrumbs.render(Route.getCurrentRoute.getName, '', start, end) }}
|
2015-06-19 20:59:14 +02:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
{% block content %}
|
2017-03-09 20:54:18 +01:00
|
|
|
|
|
|
|
|
{# upper show-all instruction #}
|
|
|
|
|
{% if periods.count > 0 %}
|
|
|
|
|
<div class="row">
|
2017-07-01 10:36:08 +02:00
|
|
|
<div class="col-lg-offset-9 col-lg-3 col-md-offset-9 col-md-3 col-sm-12 col-xs-12">
|
2017-03-09 20:54:18 +01:00
|
|
|
<p class="small text-center"><a href="{{ route('budgets.no-budget',['all']) }}">{{ 'showEverything'|_ }}</a></p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
2015-06-27 08:06:24 +02:00
|
|
|
<div class="row">
|
2017-07-01 10:36:08 +02:00
|
|
|
<div class="{% if periods.count > 0 %}col-lg-9 col-md-9 col-sm-12{% else %}col-lg-12 col-md-12 col-sm-12{% endif %}">
|
2015-06-27 08:06:24 +02:00
|
|
|
<div class="box">
|
|
|
|
|
<div class="box-header with-border">
|
|
|
|
|
<h3 class="box-title">{{ subTitle }}</h3>
|
|
|
|
|
</div>
|
2017-03-09 20:54:18 +01:00
|
|
|
<div class="box-body ">
|
2017-06-02 12:59:14 +02:00
|
|
|
{% include 'list.journals' with {'journals': journals,'hideBudgets': true} %}
|
2017-03-09 20:54:18 +01:00
|
|
|
{% if periods.count > 0 %}
|
|
|
|
|
<p>
|
2017-08-20 12:43:31 +02:00
|
|
|
<i class="fa fa-calendar"></i>
|
2018-07-14 17:23:44 +02:00
|
|
|
<a href="{{ route('budgets.no-budget-all') }}">{{ 'show_all_no_filter'|_ }}</a>
|
2017-03-09 20:54:18 +01:00
|
|
|
</p>
|
|
|
|
|
{% else %}
|
|
|
|
|
<p>
|
2017-08-20 12:43:31 +02:00
|
|
|
<i class="fa fa-calendar"></i>
|
2017-03-09 20:54:18 +01:00
|
|
|
<a href="{{ route('budgets.no-budget') }}">{{ 'show_the_current_period_and_overview'|_ }}</a>
|
|
|
|
|
</p>
|
|
|
|
|
{% endif %}
|
2015-06-27 08:06:24 +02:00
|
|
|
</div>
|
2015-05-02 09:06:07 +02:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2017-03-09 20:54:18 +01:00
|
|
|
|
|
|
|
|
{% if periods.count > 0 %}
|
2017-07-01 10:36:08 +02:00
|
|
|
<div class="col-lg-3 col-md-3 col-sm-12 col-xs-12">
|
2017-03-18 08:09:14 +01:00
|
|
|
{% for period in periods %}
|
2017-04-16 12:51:21 +02:00
|
|
|
{% if period.count > 0 %}
|
|
|
|
|
<div class="box {% if period.date == start %}box-solid box-primary{% endif %}">
|
|
|
|
|
<div class="box-header with-border">
|
2018-07-14 17:23:44 +02:00
|
|
|
<h3 class="box-title"><a href="{{ route('budgets.no-budget',[period.start.format('Y-m-d'), period.end.format('Y-m-d')]) }}">{{ period.name }}</a>
|
2017-04-16 12:51:21 +02:00
|
|
|
</h3>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="box-body no-padding">
|
|
|
|
|
<table class="table table-hover">
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="width:33%;">{{ 'transactions'|_ }}</td>
|
|
|
|
|
<td style="text-align: right;">{{ period.count }}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
|
|
|
|
<td style="width:33%;">{{ 'spent'|_ }}</td>
|
|
|
|
|
<td style="text-align: right;">{{ period.sum|formatAmount }}</td>
|
|
|
|
|
</tr>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
2017-03-09 20:54:18 +01:00
|
|
|
</div>
|
2017-04-16 12:51:21 +02:00
|
|
|
{% endif %}
|
2017-03-09 20:54:18 +01:00
|
|
|
{% endfor %}
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
2015-05-02 09:06:07 +02:00
|
|
|
</div>
|
|
|
|
|
|
2017-03-09 20:54:18 +01:00
|
|
|
{# lower show-all instruction #}
|
|
|
|
|
{% if periods.count > 0 %}
|
|
|
|
|
<div class="row">
|
2017-07-01 10:36:08 +02:00
|
|
|
<div class="col-lg-offset-9 col-lg-3 col-md-offset-9 col-md-3 col-sm-12 col-xs-12">
|
2018-07-14 17:23:44 +02:00
|
|
|
<p class="small text-center"><a href="{{ route('budgets.no-budget-all') }}">{{ 'showEverything'|_ }}</a></p>
|
2017-03-09 20:54:18 +01:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
2015-05-05 12:51:57 +02:00
|
|
|
{% endblock %}
|
2016-04-23 18:55:57 +02:00
|
|
|
{% block scripts %}
|
2017-09-12 19:59:07 +02:00
|
|
|
<script type="text/javascript" src="js/ff/transactions/list.js?v={{ FF_VERSION }}"></script>
|
2016-04-24 09:02:21 +02:00
|
|
|
{% endblock %}
|