1
0
Fork 0
ember-file-download-list-ex.../app/templates/components/file-table.hbs
2018-12-16 15:10:24 -06:00

55 lines
No EOL
1.1 KiB
Handlebars

{{#if showDownloadAlert}}
<div
class="file-table-download-alert"
data-test-id="file-table-download-alert"
>
<button
data-test-action="file-table-download-close"
{{action "closeDownloadAlert"}}
>
Close
</button>
Foo
</div>
{{/if}}
<header data-test-id="file-table-action-bar">
<button
data-test-action="file-table-select-all"
{{action "toggleSelectAll"}}
>
<i
class="file-table-select-status-{{selectAllStatus}}"
data-test-id="file-table-select-status-icon"
>
&nbsp;
</i>
Selected {{selectedFilePaths.length}}
</button>
<button
data-test-action="file-table-download-selected"
{{action "downloadSelected"}}
>
Download Selected
</button>
</header>
<table>
<thead data-test-id="file-table-header">
<th>&nbsp;</th>
<th>Name</th>
<th>Device</th>
<th>Path</th>
<th>&nbsp;</th>
<th>Status</th>
</thead>
<tbody>
{{#each files as | file |}}
{{file-table-item
file=file
selectedFilePaths=selectedFilePaths
click=(action "toggleSelectedPath" file.path)
}}
{{/each}}
</tbody>
</table>