Expand report index to include both "normal" year and fiscal year.

This commit is contained in:
James Cole
2016-01-29 17:14:23 +01:00
parent 24d111f026
commit b044d85e90

View File

@@ -61,6 +61,11 @@
<div class="col-sm-9"> <div class="col-sm-9">
{% for year, data in months %} {% for year, data in months %}
<a href="#" class="date-select" data-start="{{ data.start }}" data-end="{{ data.end }}">{{ year }}</a> <a href="#" class="date-select" data-start="{{ data.start }}" data-end="{{ data.end }}">{{ year }}</a>
{% if customFiscalYear == 1 %}
<br/>
<a href="#" class="date-select" data-start="{{ data.fiscal_start }}" data-end="{{ data.fiscal_end }}">{{ year }}
({{ 'fiscal_year'|_|lower }})</a>
{% endif %}
<ul class="list-inline"> <ul class="list-inline">
{% for month in data.months %} {% for month in data.months %}
<li> <li>
@@ -109,14 +114,14 @@
]) }}">{{ 'report_this_year_quick'|_ }}</a> ]) }}">{{ 'report_this_year_quick'|_ }}</a>
</li> </li>
{% if customFiscalYear == 1 %} {% if customFiscalYear == 1 %}
<li> <li>
<a href="{{ route('reports.report', <a href="{{ route('reports.report',
['default', ['default',
'currentFiscalYearStart', 'currentFiscalYearStart',
'currentFiscalYearEnd', 'currentFiscalYearEnd',
accountList accountList
]) }}">{{ 'report_this_fiscal_year_quick'|_ }}</a> ]) }}">{{ 'report_this_fiscal_year_quick'|_ }}</a>
</li> </li>
{% endif %} {% endif %}
<li> <li>
<a href="{{ route('reports.report', <a href="{{ route('reports.report',