2022-07-05 13:41:31 -04:00
|
|
|
<ConditionalLoadingSpinner @condition={{this.isLoading}}>
|
2018-12-19 08:44:43 -05:00
|
|
|
<div class="reports-index section">
|
|
|
|
<div class="section-title">
|
|
|
|
<h2>{{i18n "admin.reports.title"}}</h2>
|
2022-07-06 04:37:54 -04:00
|
|
|
<Input
|
|
|
|
class="filter-reports-input"
|
|
|
|
placeholder={{i18n "admin.dashboard.filter_reports"}}
|
|
|
|
autofocus={{true}}
|
|
|
|
{{on "input" (action "filterReports" value="target.value")}}
|
|
|
|
/>
|
2018-12-19 08:44:43 -05:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<ul class="reports-list">
|
2022-07-06 04:37:54 -04:00
|
|
|
{{#each this.filteredReports as |report|}}
|
2018-12-19 08:44:43 -05:00
|
|
|
<li class="report">
|
2022-06-30 06:30:50 -04:00
|
|
|
<LinkTo @route="adminReports.show" @model={{report.type}}>
|
2018-12-19 08:44:43 -05:00
|
|
|
<h3 class="report-title">{{report.title}}</h3>
|
|
|
|
{{#if report.description}}
|
|
|
|
<p class="report-description">
|
|
|
|
{{report.description}}
|
|
|
|
</p>
|
|
|
|
{{/if}}
|
2022-06-30 06:30:50 -04:00
|
|
|
</LinkTo>
|
2018-12-19 08:44:43 -05:00
|
|
|
</li>
|
|
|
|
{{/each}}
|
|
|
|
</ul>
|
|
|
|
</div>
|
2022-06-30 06:30:50 -04:00
|
|
|
</ConditionalLoadingSpinner>
|