2021-02-17 21:01:44 +00:00
|
|
|
{{page-title "Job " this.job.name " allocations"}}
|
2020-07-09 20:19:07 +00:00
|
|
|
<JobSubnav @job={{this.job}} />
|
2018-08-06 22:25:28 +00:00
|
|
|
<section class="section">
|
2021-11-20 15:04:15 +00:00
|
|
|
{{#if this.model.allocations.length}}
|
|
|
|
<div class="toolbar">
|
|
|
|
<div class="toolbar-item">
|
2020-06-01 19:03:56 +00:00
|
|
|
<SearchBox
|
2018-08-06 22:25:28 +00:00
|
|
|
data-test-allocations-search
|
2020-07-09 20:19:07 +00:00
|
|
|
@searchTerm={{mut this.searchTerm}}
|
|
|
|
@onChange={{action this.resetPagination}}
|
2021-12-18 00:47:25 +00:00
|
|
|
@placeholder="Search allocations..." />
|
2021-11-20 15:04:15 +00:00
|
|
|
</div>
|
|
|
|
<div class="toolbar-item is-right-aligned">
|
|
|
|
<div class="button-bar">
|
|
|
|
<MultiSelectDropdown
|
|
|
|
data-test-allocation-status-facet
|
|
|
|
@label="Status"
|
|
|
|
@options={{this.optionsAllocationStatus}}
|
|
|
|
@selection={{this.selectionStatus}}
|
|
|
|
@onSelect={{action this.setFacetQueryParam "qpStatus"}}
|
|
|
|
/>
|
2021-11-20 15:21:28 +00:00
|
|
|
<MultiSelectDropdown
|
|
|
|
data-test-allocation-client-facet
|
|
|
|
@label="Client"
|
|
|
|
@options={{this.optionsClients}}
|
|
|
|
@selection={{this.selectionClient}}
|
|
|
|
@onSelect={{action this.setFacetQueryParam "qpClient"}}
|
|
|
|
/>
|
2021-11-20 15:30:48 +00:00
|
|
|
<MultiSelectDropdown
|
|
|
|
data-test-task-group-facet
|
|
|
|
@label="Task Group"
|
|
|
|
@options={{this.optionsTaskGroups}}
|
|
|
|
@selection={{this.selectionTaskGroup}}
|
|
|
|
@onSelect={{action this.setFacetQueryParam "qpTaskGroup"}}
|
|
|
|
/>
|
2021-11-23 23:24:01 +00:00
|
|
|
<MultiSelectDropdown
|
|
|
|
data-test-job-version-facet
|
|
|
|
@label="Job Version"
|
|
|
|
@options={{this.optionsJobVersions}}
|
|
|
|
@selection={{this.selectionJobVersion}}
|
|
|
|
@onSelect={{action this.setFacetQueryParam "qpJobVersion"}}
|
|
|
|
/>
|
2021-11-20 15:04:15 +00:00
|
|
|
</div>
|
2018-07-19 23:57:44 +00:00
|
|
|
</div>
|
2018-08-06 22:25:28 +00:00
|
|
|
</div>
|
2020-07-09 20:19:07 +00:00
|
|
|
{{#if this.sortedAllocations}}
|
2020-06-01 19:03:56 +00:00
|
|
|
<ListPagination
|
2020-07-09 20:19:07 +00:00
|
|
|
@source={{this.sortedAllocations}}
|
|
|
|
@size={{this.pageSize}}
|
|
|
|
@page={{this.currentPage}}
|
2021-12-18 00:47:25 +00:00
|
|
|
@class="allocations" as |p|>
|
2020-06-01 19:03:56 +00:00
|
|
|
<ListTable
|
|
|
|
@source={{p.list}}
|
2020-07-09 20:19:07 +00:00
|
|
|
@sortProperty={{this.sortProperty}}
|
|
|
|
@sortDescending={{this.sortDescending}}
|
2021-12-18 00:47:25 +00:00
|
|
|
@class="with-foot" as |t|>
|
2020-06-01 19:03:56 +00:00
|
|
|
<t.head>
|
2019-10-24 12:05:43 +00:00
|
|
|
<th class="is-narrow"></th>
|
2021-12-18 00:47:25 +00:00
|
|
|
<t.sort-by @prop="shortId">ID</t.sort-by>
|
|
|
|
<t.sort-by @prop="taskGroupName">Task Group</t.sort-by>
|
|
|
|
<t.sort-by @prop="createIndex" @title="Create Index">Created</t.sort-by>
|
|
|
|
<t.sort-by @prop="modifyIndex" @title="Modify Index">Modified</t.sort-by>
|
|
|
|
<t.sort-by @prop="statusIndex">Status</t.sort-by>
|
|
|
|
<t.sort-by @prop="jobVersion">Version</t.sort-by>
|
|
|
|
<t.sort-by @prop="node.shortId">Client</t.sort-by>
|
|
|
|
<th>Volume</th>
|
|
|
|
<th>CPU</th>
|
|
|
|
<th>Memory</th>
|
2020-06-01 19:03:56 +00:00
|
|
|
</t.head>
|
|
|
|
<t.body as |row|>
|
|
|
|
<AllocationRow
|
|
|
|
@data-test-allocation={{row.model.id}}
|
|
|
|
@allocation={{row.model}}
|
|
|
|
@context="job"
|
2021-12-18 00:47:25 +00:00
|
|
|
@onClick={{action "gotoAllocation" row.model}} />
|
2020-06-01 19:03:56 +00:00
|
|
|
</t.body>
|
|
|
|
</ListTable>
|
2019-10-24 12:05:43 +00:00
|
|
|
<div class="table-foot">
|
|
|
|
<nav class="pagination">
|
|
|
|
<div class="pagination-numbers">
|
2021-12-18 00:47:25 +00:00
|
|
|
{{p.startsAt}}–{{p.endsAt}} of {{this.sortedAllocations.length}}
|
2019-10-24 12:05:43 +00:00
|
|
|
</div>
|
2021-12-18 00:47:25 +00:00
|
|
|
<p.prev @class="pagination-previous"> < </p.prev>
|
|
|
|
<p.next @class="pagination-next"> > </p.next>
|
2019-10-24 12:05:43 +00:00
|
|
|
<ul class="pagination-list"></ul>
|
|
|
|
</nav>
|
|
|
|
</div>
|
2020-06-01 19:03:56 +00:00
|
|
|
</ListPagination>
|
2018-07-20 17:29:44 +00:00
|
|
|
{{else}}
|
|
|
|
<div class="boxed-section-body">
|
|
|
|
<div class="empty-message" data-test-empty-allocations-list>
|
2021-12-18 00:47:25 +00:00
|
|
|
<h3 class="empty-message-headline" data-test-empty-allocations-list-headline>No Matches</h3>
|
|
|
|
<p class="empty-message-body">No allocations match the term <strong>{{this.searchTerm}}</strong></p>
|
2018-07-20 17:29:44 +00:00
|
|
|
</div>
|
2018-07-19 23:57:44 +00:00
|
|
|
</div>
|
2019-10-24 12:05:43 +00:00
|
|
|
{{/if}}
|
2018-08-06 22:25:28 +00:00
|
|
|
{{else}}
|
|
|
|
<div class="boxed-section-body">
|
|
|
|
<div class="empty-message" data-test-empty-allocations-list>
|
2021-12-18 00:47:25 +00:00
|
|
|
<h3 class="empty-message-headline" data-test-empty-allocations-list-headline>No Allocations</h3>
|
|
|
|
<p class="empty-message-body">No allocations have been placed.</p>
|
2018-08-06 22:25:28 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
2021-11-20 15:04:15 +00:00
|
|
|
</section>
|