aca09313ca9938867d07a304742ebb628ab0929c
[portal/nonrtric-controlpanel.git] / webapp-frontend / src / app / ei-coordinator / jobs-list / jobs-list.component.html
1 <!--
2 ========================LICENSE_START=================================
3 O-RAN-SC
4 %%
5 Copyright (C) 2021 Nordix Foundation
6 %%
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
10
11 http://www.apache.org/licenses/LICENSE-2.0
12
13 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
18 ========================LICENSE_END===================================
19 -->
20 <div class="table-container">
21     <mat-checkbox class="polling-checkbox" [checked]="checked" (change)="stopPolling($event.checked)">auto-refresh</mat-checkbox>
22     <div class="spinner-container" style="display: flex; justify-content: center; align-items: center;"
23         *ngIf="loading$ | async">
24         <mat-spinner></mat-spinner>
25     </div>
26     <mat-table id="jobsTable" [dataSource]="jobsDataSource" fixedLayout matSort (matSortChange)="sortJobs($event)"
27         matSortDisableClear matSortDirection="asc" class="ei-coordinator-table mat-elevation-z8">
28         <ng-container matColumnDef="jobId">
29             <mat-header-cell *matHeaderCellDef mat-sort-header>
30                 <div (click)="stopSort($event)">
31                     <form style="display: flex" [formGroup]="jobForm">
32                         <mat-form-field>
33                             <input id="jobIdFilter" matInput formControlName="jobId">
34                             <mat-placeholder>Job ID</mat-placeholder>
35                         </mat-form-field>
36                     </form>
37                 </div>
38             </mat-header-cell>
39             <mat-cell *matCellDef="let job"> {{job.jobId}} </mat-cell>
40         </ng-container>
41         <ng-container matColumnDef="prodId">
42             <mat-header-cell *matHeaderCellDef mat-sort-header>
43                 <div (click)="stopSort($event)">
44                     <form style="display: flex" [formGroup]="jobForm">
45                         <mat-form-field>
46                             <input id="jobProdIdFilter" matInput formControlName="prodId">
47                             <mat-placeholder>Producer ID</mat-placeholder>
48                         </mat-form-field>
49                     </form>
50                 </div>
51             </mat-header-cell>
52             <mat-cell *matCellDef="let job"> {{job.prodId}} </mat-cell>
53         </ng-container>
54         <ng-container matColumnDef="typeId">
55             <mat-header-cell *matHeaderCellDef mat-sort-header>
56                 <div (click)="stopSort($event)">
57                     <form style="display: flex" [formGroup]="jobForm">
58                         <mat-form-field>
59                             <input id="jobTypeIdFilter" matInput formControlName="typeId">
60                             <mat-placeholder>Type ID</mat-placeholder>
61                         </mat-form-field>
62                     </form>
63                 </div>
64             </mat-header-cell>
65             <mat-cell *matCellDef="let job">{{this.getJobTypeId(job)}} </mat-cell>
66         </ng-container>
67         <ng-container matColumnDef="owner">
68             <mat-header-cell *matHeaderCellDef mat-sort-header>
69                 <div (click)="stopSort($event)">
70                     <form style="display: flex" [formGroup]="jobForm">
71                         <mat-form-field>
72                             <input id="jobOwnerFilter" matInput formControlName="owner">
73                             <mat-placeholder>Owner</mat-placeholder>
74                         </mat-form-field>
75                     </form>
76                 </div>
77             </mat-header-cell>
78             <mat-cell *matCellDef="let job">{{this.getJobOwner(job)}} </mat-cell>
79         </ng-container>
80         <ng-container matColumnDef="targetUri">
81             <mat-header-cell *matHeaderCellDef mat-sort-header>
82                 <div (click)="stopSort($event)">
83                     <form style="display: flex" [formGroup]="jobForm">
84                         <mat-form-field>
85                             <input id="jobTargetUriFilter" matInput formControlName="targetUri">
86                             <mat-placeholder>Target URI</mat-placeholder>
87                         </mat-form-field>
88                     </form>
89                 </div>
90             </mat-header-cell>
91             <mat-cell *matCellDef="let job"> {{job.targetUri}} </mat-cell>
92         </ng-container>
93         <mat-header-row *matHeaderRowDef="['jobId', 'prodId', 'typeId', 'owner', 'targetUri']"></mat-header-row>
94         <mat-row *matRowDef="let row; columns: ['jobId', 'prodId', 'typeId', 'owner', 'targetUri'];"></mat-row>
95     </mat-table>
96     <mat-paginator [length]="jobs()?.length" [pageSize]="10" [pageSizeOptions]="[5, 10, 25, 100]" showFirstLastButtons
97         class="ei-coordinator-table mat-elevation-z8"></mat-paginator>
98 </div>