1
|
<div class="p-text-right">
|
2
|
<div class="p-field">
|
3
|
<label for="numOfClientsPresented{{section.type}}"
|
4
|
class="p-ml-0"
|
5
|
style="margin-right:0.5rem">
|
6
|
Num of iPower Clients Presented
|
7
|
</label>
|
8
|
<p-dropdown inputId="numOfClientsPresented{{section.type}}"
|
9
|
[options]="numOfClientsPresentedList"
|
10
|
[ngModel]="section.selectedElements"
|
11
|
(onChange)="totalElementsChanged($event.value)">
|
12
|
</p-dropdown>
|
13
|
</div>
|
14
|
</div>
|
15
|
|
16
|
<p-table [value]="section.aggregatedResults"
|
17
|
[paginator]="true"
|
18
|
[lazy]="true"
|
19
|
[lazyLoadOnInit]="false"
|
20
|
[rowHover]="true"
|
21
|
(onLazyLoad)="onLazyLoad($event)"
|
22
|
[first]="section.selectedPage"
|
23
|
[rows]="section.selectedElements"
|
24
|
[totalRecords]="section.totalElements"
|
25
|
[loading]="section.resultsLoading"
|
26
|
styleClass="p-datatable-gridlines"
|
27
|
[autoLayout]="true">
|
28
|
<ng-template pTemplate="header">
|
29
|
<tr>
|
30
|
<th>iPower Client Name</th>
|
31
|
<th>iPower Client Code</th>
|
32
|
<th>Processes</th>
|
33
|
<th>Exceptions</th>
|
34
|
<th>Unhandled</th>
|
35
|
<th class="one-button"></th>
|
36
|
</tr>
|
37
|
</ng-template>
|
38
|
<ng-template pTemplate="body" let-client>
|
39
|
<tr>
|
40
|
<td>{{client.clientName}}</td>
|
41
|
<td>{{client.clientId}}</td>
|
42
|
<td>{{client.processesNumber}}</td>
|
43
|
<td>{{client.exceptionsNumber}}</td>
|
44
|
<td>{{client.unhandledNumber}}</td>
|
45
|
<td>
|
46
|
<button pButton
|
47
|
(click)="preview(client)"
|
48
|
icon="pi pi-desktop"
|
49
|
pTooltip="{{'Preview' | translate}}"
|
50
|
class="p-button-secondary p-button-rounded p-button-outlined">
|
51
|
</button>
|
52
|
</td>
|
53
|
</tr>
|
54
|
</ng-template>
|
55
|
</p-table>
|