firefly-iii/resources/twig/reports/index.twig

141 lines
6.3 KiB
Twig
Raw Normal View History

2015-05-02 11:26:55 -05:00
{% extends "./layout/default.twig" %}
2015-06-19 13:59:14 -05:00
{% block breadcrumbs %}
2015-05-02 11:26:55 -05:00
{{ Breadcrumbs.renderIfExists(Route.getCurrentRoute.getName) }}
2015-06-19 13:59:14 -05:00
{% endblock %}
{% block content %}
<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">
2015-12-12 05:29:54 -06:00
<h3 class="box-title">{{ 'reports'|_ }}</h3>
</div>
<div class="box-body">
2015-12-14 14:14:34 -06:00
<form class="form-horizontal" id="report-form" action="{{ route('reports.index') }}" method="post">
2015-12-18 09:37:45 -06:00
<input type="hidden" name="_token" value="{{ csrf_token() }}"/>
<div class="form-group">
2015-12-12 05:29:54 -06:00
<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">
2015-12-12 05:29:54 -06:00
<option label="{{ 'report_type_default'|_ }}" value="default">{{ 'report_type_default'|_ }}</option>
</select>
</div>
</div>
<div class="form-group">
2015-12-12 05:29:54 -06:00
<label for="inputAccounts" class="col-sm-3 control-label">{{ 'report_included_accounts'|_ }}</label>
<div class="col-sm-9">
{% for account in accounts %}
<div class="checkbox">
<label>
<input type="checkbox" class="account-checkbox" name="accounts[]" value="{{ account.id }}">
{{ account.name }}
{% if account.getMeta('accountRole') == 'sharedAsset' %}
2015-12-12 05:29:54 -06:00
({{ 'shared'|_|lower }})
{% endif %}
</label>
</div>
{% endfor %}
<p class="help-block">
2015-12-12 05:29:54 -06:00
{{ 'report_include_help'|_ }}
</p>
</div>
</div>
<div class="form-group">
2015-12-12 05:29:54 -06:00
<label for="inputDateRange" class="col-sm-3 control-label">{{ 'report_date_range'|_ }}</label>
2015-12-03 23:57:08 -06:00
<div class="col-sm-9">
<input type="text" class="form-control" id="inputDateRange" name="daterange"
2015-12-03 23:57:08 -06:00
value="{{ Session.get('start').format('Y-m-d') }} - {{ Session.get('end').format('Y-m-d') }}">
</div>
</div>
<div class="form-group">
2015-12-12 05:29:54 -06:00
<label for="__none__" class="col-sm-3 control-label">{{ 'report_preset_ranges'|_ }}</label>
2015-12-03 23:57:08 -06:00
<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>
2015-12-18 09:37:45 -06:00
<a data-start="{{ month.start }}" data-end="{{ month.end }}" class="date-select"
href="#">{{ month.formatted }}</a>
2015-12-03 23:57:08 -06:00
</li>
{% endfor %}
</ul>
{% endfor %}
</div>
</div>
2015-12-03 23:57:08 -06:00
<div class="form-group">
<div class="col-sm-offset-3 col-sm-9">
2015-12-12 05:29:54 -06:00
<button type="submit" class="btn btn-default">{{ 'submit'|_ }}</button>
</div>
</div>
</form>
</div>
</div>
</div>
2015-12-18 01:10:41 -06:00
2015-12-15 05:38:18 -06:00
<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">{{ 'quick_link_reports'|_ }}</h3>
</div>
<div class="box-body">
<h4>{{ 'quick_link_default_report'|_ }}</h4>
<ul>
<li>
2015-12-18 01:10:41 -06:00
<a href="{{ route('reports.report',
['default',
startOfMonth.format('Ymd'),
endOfMonth.format('Ymd'),
2015-12-18 09:37:45 -06:00
accountList
2015-12-18 01:10:41 -06:00
]) }}">{{ 'report_this_month_quick'|_ }}</a>
2015-12-15 05:38:18 -06:00
</li>
<li>
2015-12-18 01:10:41 -06:00
<a href="{{ route('reports.report',
['default',
startOfYear.format('Ymd'),
endOfYear.format('Ymd'),
2015-12-18 01:10:41 -06:00
accountList
]) }}">{{ 'report_this_year_quick'|_ }}</a>
2015-12-15 05:38:18 -06:00
</li>
<li>
2015-12-18 01:10:41 -06:00
<a href="{{ route('reports.report',
['default',
start.format('Ymd'),
endOfMonth.format('Ymd'),
2015-12-18 01:10:41 -06:00
accountList
]) }}">{{ 'report_all_time_quick'|_ }}</a>
2015-12-15 05:38:18 -06:00
</li>
</ul>
<p>
<em>{{ 'reports_can_bookmark'|_ }}</em>
</p>
</div>
</div>
2015-12-18 01:10:41 -06:00
2015-12-15 05:38:18 -06:00
</div>
</div>
2015-05-02 11:26:55 -05:00
{% endblock %}
{% block scripts %}
<script type="text/javascript">
2015-12-18 01:10:41 -06:00
var reportURL = "{{ route('reports.report', ['']) }}";
var minDate = "{{ start.format('m/d/Y') }}";
2015-12-03 23:57:08 -06:00
var picker;
</script>
2015-12-14 13:33:50 -06:00
<script type="text/javascript" src="js/reports/index.js"></script>
2015-05-02 11:26:55 -05:00
{% endblock %}