2015-05-02 18:26:55 +02:00
|
|
|
{% extends "./layout/default.twig" %}
|
2015-06-19 20:59:14 +02:00
|
|
|
|
|
|
|
{% block breadcrumbs %}
|
2015-05-02 18:26:55 +02:00
|
|
|
{{ Breadcrumbs.renderIfExists(Route.getCurrentRoute.getName) }}
|
2015-06-19 20:59:14 +02:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2015-05-15 20:43:50 +02:00
|
|
|
<div class="row">
|
2015-07-01 15:02:27 +02:00
|
|
|
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
|
2015-06-20 07:29:25 +02:00
|
|
|
<div class="box">
|
|
|
|
<div class="box-header with-border">
|
2015-06-21 10:50:45 +02:00
|
|
|
<h3 class="box-title">{{ 'reportsOwnAccounts'|_ }}</h3>
|
2015-05-15 20:43:50 +02:00
|
|
|
</div>
|
2015-06-20 07:29:25 +02:00
|
|
|
<div class="box-body">
|
2015-12-04 06:57:08 +01:00
|
|
|
{% for year, data in months %}
|
2015-06-27 08:06:24 +02:00
|
|
|
<h4><a href="{{ route('reports.year',year) }}">{{ year }}</a></h4>
|
2015-05-15 20:43:50 +02:00
|
|
|
<ul class="list-inline">
|
2015-12-04 06:57:08 +01:00
|
|
|
{% for month in data.months %}
|
2015-12-03 14:52:10 +01:00
|
|
|
<li>
|
|
|
|
<a href="{{ route('reports.month',[month.year, month.month]) }}">{{ month.formatted }}</a>
|
|
|
|
</li>
|
2015-06-27 08:06:24 +02:00
|
|
|
{% endfor %}
|
2015-05-15 20:43:50 +02:00
|
|
|
</ul>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2015-05-02 18:26:55 +02:00
|
|
|
</div>
|
2015-05-15 20:43:50 +02:00
|
|
|
</div>
|
2015-07-01 15:02:27 +02:00
|
|
|
<div class="col-lg-6 col-md-6 col-sm-12 col-xs-12">
|
2015-06-20 07:29:25 +02:00
|
|
|
<div class="box">
|
|
|
|
<div class="box-header with-border">
|
2015-06-21 10:50:45 +02:00
|
|
|
<h3 class="box-title">{{ 'reportsOwnAccountsAndShared'|_ }}</h3>
|
2015-05-15 20:43:50 +02:00
|
|
|
</div>
|
2015-06-20 07:29:25 +02:00
|
|
|
<div class="box-body">
|
2015-12-04 06:57:08 +01:00
|
|
|
{% for year, data in months %}
|
2015-06-27 08:06:24 +02:00
|
|
|
<h4><a href="{{ route('reports.year',[year, 'shared']) }}">{{ year }}</a></h4>
|
2015-05-15 20:43:50 +02:00
|
|
|
<ul class="list-inline">
|
2015-12-04 06:57:08 +01:00
|
|
|
{% for month in data.months %}
|
2015-12-03 14:52:10 +01:00
|
|
|
<li>
|
|
|
|
<a href="{{ route('reports.month',[month.year, month.month,'shared']) }}">{{ month.formatted }}</a>
|
|
|
|
</li>
|
2015-05-15 20:43:50 +02:00
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
2015-05-02 18:26:55 +02:00
|
|
|
{% endfor %}
|
2015-05-15 20:43:50 +02:00
|
|
|
</div>
|
2015-05-02 18:26:55 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-12-03 14:52:10 +01:00
|
|
|
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-6 col-md-6 col-sm-6 col-xs-6">
|
|
|
|
<div class="box">
|
|
|
|
<div class="box-header with-border">
|
|
|
|
<h3 class="box-title">Some new reports.</h3>
|
|
|
|
</div>
|
|
|
|
<div class="box-body">
|
|
|
|
|
2015-12-04 06:57:08 +01:00
|
|
|
<form class="form-horizontal" action="{{ route('reports.select') }}" method="post">
|
|
|
|
<input type="hidden" name="_token" value="{{ csrf_token() }}" />
|
2015-12-03 14:52:10 +01:00
|
|
|
<div class="form-group">
|
|
|
|
<label for="inputReportType" class="col-sm-3 control-label">Report type</label>
|
|
|
|
|
|
|
|
<div class="col-sm-9">
|
|
|
|
<select name="report_type" class="form-control" id="inputReportType">
|
|
|
|
<option label="Default financial report" value="default">Default financial report</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="inputAccounts" class="col-sm-3 control-label">Included accounts</label>
|
|
|
|
|
|
|
|
<div class="col-sm-9">
|
|
|
|
{% for account in accounts %}
|
|
|
|
<div class="checkbox">
|
|
|
|
<label>
|
|
|
|
<input type="checkbox" name="accounts[]" value="{{ account.id }}">
|
|
|
|
{{ account.name }}
|
|
|
|
{% if account.getMeta('accountRole') == 'sharedAsset' %}
|
|
|
|
(shared)
|
|
|
|
{% endif %}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
|
|
|
|
<p class="help-block">
|
|
|
|
In all cases, transfers to shared accounts count as expenses, and transfers
|
|
|
|
from shared accounts count as income.
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="inputDateRange" class="col-sm-3 control-label">Report date range</label>
|
2015-12-04 06:57:08 +01:00
|
|
|
|
2015-12-03 14:52:10 +01:00
|
|
|
<div class="col-sm-9">
|
|
|
|
<input type="text" class="form-control" id="inputDateRange" name="daterange"
|
2015-12-04 06:57:08 +01:00
|
|
|
value="{{ Session.get('start').format('Y-m-d') }} - {{ Session.get('end').format('Y-m-d') }}">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
|
|
<label for="__none__" class="col-sm-3 control-label">Pre-set ranges</label>
|
|
|
|
|
|
|
|
<div class="col-sm-9">
|
|
|
|
{% for year, data in months %}
|
|
|
|
<a href="#" class="date-select" data-start="{{ data.start }}" data-end="{{ data.end }}">{{ year }}</a>
|
|
|
|
<ul class="list-inline">
|
|
|
|
{% for month in data.months %}
|
|
|
|
<li>
|
|
|
|
<a data-start="{{ month.start }}" data-end="{{ month.end }}" class="date-select" href="#">{{ month.formatted }}</a>
|
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endfor %}
|
2015-12-03 14:52:10 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-12-04 06:57:08 +01:00
|
|
|
|
2015-12-03 14:52:10 +01:00
|
|
|
<div class="form-group">
|
|
|
|
<div class="col-sm-offset-3 col-sm-9">
|
|
|
|
<button type="submit" class="btn btn-default">Submit</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2015-05-02 18:26:55 +02:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block scripts %}
|
2015-12-03 14:52:10 +01:00
|
|
|
<script type="text/javascript">
|
|
|
|
var minDate = "{{ start.format('m/d/Y') }}";
|
2015-12-04 06:57:08 +01:00
|
|
|
var picker;
|
2015-12-03 14:52:10 +01:00
|
|
|
</script>
|
|
|
|
|
2015-05-02 18:26:55 +02:00
|
|
|
<script type="text/javascript" src="js/reports.js"></script>
|
|
|
|
{% endblock %}
|