2015-07-04 00:00:59 +08:00
|
|
|
<h3>{{model.title}}</h3>
|
2013-02-28 11:39:42 +08:00
|
|
|
|
2016-02-03 10:29:51 +08:00
|
|
|
<div class="admin-reports-filter">
|
2016-04-21 17:22:41 +08:00
|
|
|
{{i18n 'admin.dashboard.reports.start_date'}} {{date-picker-past value=startDate}}
|
|
|
|
{{i18n 'admin.dashboard.reports.end_date'}} {{date-picker-past value=endDate}}
|
|
|
|
{{#if showCategoryOptions}}
|
2016-04-21 15:33:23 +08:00
|
|
|
{{combo-box valueAttribute="value" content=categoryOptions value=categoryId}}
|
2016-02-03 10:29:51 +08:00
|
|
|
{{/if}}
|
2016-04-21 17:22:41 +08:00
|
|
|
{{#if showGroupOptions}}
|
|
|
|
{{combo-box valueAttribute="value" content=groupOptions value=groupId}}
|
|
|
|
{{/if}}
|
|
|
|
{{d-button action="refreshReport" class="btn-primary" label="admin.dashboard.reports.refresh_report" icon="refresh"}}
|
2015-09-16 04:52:46 +08:00
|
|
|
{{d-button action="exportCsv" label="admin.export_csv.button_text" icon="download"}}
|
2014-11-06 03:46:27 +08:00
|
|
|
</div>
|
2013-03-18 03:02:36 +08:00
|
|
|
|
2014-11-06 03:46:27 +08:00
|
|
|
<div class='view-options'>
|
|
|
|
{{#if viewingTable}}
|
2014-12-09 05:35:49 +08:00
|
|
|
{{i18n 'admin.dashboard.reports.view_table'}}
|
2014-11-06 03:46:27 +08:00
|
|
|
{{else}}
|
2014-12-09 05:35:49 +08:00
|
|
|
<a href {{action "viewAsTable"}}>{{i18n 'admin.dashboard.reports.view_table'}}</a>
|
2014-11-06 03:46:27 +08:00
|
|
|
{{/if}}
|
|
|
|
|
|
2016-04-14 13:46:01 +08:00
|
|
|
{{#if viewingGraph}}
|
|
|
|
{{i18n 'admin.dashboard.reports.view_graph'}}
|
2014-11-06 03:46:27 +08:00
|
|
|
{{else}}
|
2016-04-14 13:46:01 +08:00
|
|
|
<a href {{action "viewAsGraph"}}>{{i18n 'admin.dashboard.reports.view_graph'}}</a>
|
2014-11-06 03:46:27 +08:00
|
|
|
{{/if}}
|
|
|
|
</div>
|
2013-03-18 03:02:36 +08:00
|
|
|
|
2015-04-29 05:05:06 +08:00
|
|
|
{{#conditional-loading-spinner condition=refreshing}}
|
2016-04-14 13:46:01 +08:00
|
|
|
{{#if viewingGraph}}
|
|
|
|
{{admin-graph model=model}}
|
|
|
|
{{else}}
|
2013-03-18 03:02:36 +08:00
|
|
|
<table class='table report'>
|
2013-02-28 11:39:42 +08:00
|
|
|
<tr>
|
2015-07-04 00:00:59 +08:00
|
|
|
<th>{{model.xaxis}}</th>
|
|
|
|
<th>{{model.yaxis}}</th>
|
2013-02-28 11:39:42 +08:00
|
|
|
</tr>
|
|
|
|
|
2016-04-30 05:29:41 +08:00
|
|
|
{{#each model.dataReversed as |row|}}
|
2013-02-28 11:39:42 +08:00
|
|
|
<tr>
|
2013-05-21 01:42:26 +08:00
|
|
|
<td>{{row.x}}</td>
|
2013-03-18 03:02:36 +08:00
|
|
|
<td>
|
2016-04-14 13:46:01 +08:00
|
|
|
{{row.y}}
|
2013-03-18 03:02:36 +08:00
|
|
|
</td>
|
2013-02-28 11:39:42 +08:00
|
|
|
</tr>
|
|
|
|
{{/each}}
|
|
|
|
</table>
|
2016-04-14 13:46:01 +08:00
|
|
|
{{/if}}
|
2015-04-29 05:05:06 +08:00
|
|
|
{{/conditional-loading-spinner}}
|