43 lines
1.4 KiB
Handlebars
43 lines
1.4 KiB
Handlebars
|
{{#global-header class="page-header"}}
|
||
|
Jobs
|
||
|
{{/global-header}}
|
||
|
{{#gutter-menu class="page-body"}}
|
||
|
<section class="section">
|
||
|
<div class="content">
|
||
|
<div>{{search-box searchTerm=(mut searchTerm) placeholder="Search jobs..."}}</div>
|
||
|
</div>
|
||
|
{{#list-pagination
|
||
|
source=sortedJobs
|
||
|
size=pageSize
|
||
|
page=currentPage as |p|}}
|
||
|
{{#list-table
|
||
|
source=p.list
|
||
|
sortProperty=sortProperty
|
||
|
sortDescending=sortDescending
|
||
|
class="with-foot" as |t|}}
|
||
|
{{#t.head}}
|
||
|
{{#t.sort-by prop="name"}}Name{{/t.sort-by}}
|
||
|
{{#t.sort-by prop="status"}}Status{{/t.sort-by}}
|
||
|
{{#t.sort-by prop="type"}}Type{{/t.sort-by}}
|
||
|
{{#t.sort-by prop="priority"}}Priority{{/t.sort-by}}
|
||
|
<th>Groups</th>
|
||
|
<th class="is-3">Allocation Status</th>
|
||
|
{{/t.head}}
|
||
|
{{#t.body key="model.id" as |row|}}
|
||
|
{{job-row job=row.model onClick=(action "gotoJob" row.model)}}
|
||
|
{{/t.body}}
|
||
|
{{/list-table}}
|
||
|
<div class="table-foot">
|
||
|
<nav class="pagination">
|
||
|
<div class="pagination-numbers">
|
||
|
{{p.startsAt}}–{{p.endsAt}} of {{sortedJobs.length}}
|
||
|
</div>
|
||
|
{{#p.prev class="pagination-previous"}} < {{/p.prev}}
|
||
|
{{#p.next class="pagination-next"}} > {{/p.next}}
|
||
|
<ul class="pagination-list"></ul>
|
||
|
</nav>
|
||
|
</div>
|
||
|
{{/list-pagination}}
|
||
|
</section>
|
||
|
{{/gutter-menu}}
|