mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-24 15:26:33 -06:00
136 lines
5.5 KiB
Twig
136 lines
5.5 KiB
Twig
{% extends "./layout/default.twig" %}
|
|
|
|
{% block breadcrumbs %}
|
|
{{ Breadcrumbs.renderIfExists(Route.getCurrentRoute.getName, start, end, report_type, accountIds) }}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<div class="row">
|
|
<div class="col-lg-8 col-md-8 col-sm-12">
|
|
<div class="box">
|
|
<div class="box-header with-border">
|
|
<h3 class="box-title">{{ 'incomeVsExpenses'|_ }}</h3>
|
|
</div>
|
|
<div class="box-body">
|
|
<canvas id="income-expenses-chart" style="width:100%;height:400px;"></canvas>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-lg-4 col-md-4 col-sm-12">
|
|
<div class="box">
|
|
<div class="box-header with-border">
|
|
<h3 class="box-title">{{ 'incomeVsExpenses'|_ }}</h3>
|
|
</div>
|
|
<div class="box-body">
|
|
<canvas id="income-expenses-sum-chart" style="width:100%;height:400px;"></canvas>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{% for account in accounts %}
|
|
<div class="row" style="display:none;">
|
|
<div class="col-lg-12 col-md-12 col-sm-12">
|
|
<div class="box">
|
|
<div class="box-header with-border">
|
|
<h3 class="box-title">{{ 'Asset account'|_ }}: {{ account.name }}</h3>
|
|
</div>
|
|
<div class="box-body">
|
|
<canvas id="account-chart-{{ account.id }}" class="account-chart" data-id="{{ account.id }}" style="width:100%;height:400px;"></canvas>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
|
|
<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">Selected budgets</h3>
|
|
</div>
|
|
<div class="box-body">
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<p class="well" id="budgets-chart-message" style="display:none;">
|
|
Select one or more budgets to generate this chart. Insofar possible, your selection will be saved.
|
|
</p>
|
|
<canvas id="budgets-chart" class="budgets-chart" style="width:100%;height:400px;"></canvas>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<label class="checkbox-inline">
|
|
<input type="checkbox" class="budget-checkbox" name="budgets[]" value="0"> {{ 'noBudget'|_ }}
|
|
</label>
|
|
{% for budget in budgets %}
|
|
<label class="checkbox-inline">
|
|
<input type="checkbox" class="budget-checkbox" name="budgets[]" value="{{ budget.id }}"> {{ budget.name }}
|
|
</label>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<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">Selected categories</h3>
|
|
</div>
|
|
<div class="box-body">
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
<canvas id="categories-chart" class="categories-chart" style="width:100%;height:400px;"></canvas>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-lg-12">
|
|
{% for category in categories %}
|
|
<label class="checkbox-inline">
|
|
<input type="checkbox" name="categories[]" value="{{ category.id }}"> {{ category.name }}
|
|
</label>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
{% endblock %}
|
|
{% block styles %}
|
|
<link rel="stylesheet" href="css/bootstrap-sortable.css" type="text/css" media="all"/>
|
|
{% endblock %}
|
|
{% block scripts %}
|
|
|
|
<script type="text/javascript" src="js/bootstrap-sortable.js"></script>
|
|
|
|
<!-- load the libraries and scripts necessary for Google Charts: -->
|
|
{% if Config.get('firefly.chart') == 'google' %}
|
|
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
|
|
<script type="text/javascript" src="js/gcharts.js"></script>
|
|
{% endif %}
|
|
{% if Config.get('firefly.chart') == 'chartjs' %}
|
|
<script type="text/javascript" src="js/Chart.min.js"></script>
|
|
<script type="text/javascript" src="js/charts.js"></script>
|
|
{% endif %}
|
|
|
|
<script type="text/javascript">
|
|
var year = {{ start.year }};
|
|
var month = {{ start.month }};
|
|
|
|
// to report another URL:
|
|
var startDate = '{{ start.format('Ymd') }}';
|
|
var endDate = '{{ end.format('Ymd') }}';
|
|
var reportType = '{{ report_type }}';
|
|
var accountIds = '{{ accountIds }}';
|
|
</script>
|
|
<script type="text/javascript" src="js/reports/default/multi-year.js"></script>
|
|
{% endblock %}
|