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