Add coverage of ei coordinator component
[portal/nonrtric-controlpanel.git] / webapp-frontend / src / app / ei-coordinator / ei-coordinator.component.html
1 <!--
2 ========================LICENSE_START=================================
3 O-RAN-SC
4 %%
5 Copyright (C) 2020 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
21 <div fxLayout="row">
22   <div class="nrcp-global-page-title">Enrichment Information Coordinator</div>
23   <div class="refresh-button">
24         <button id="refreshButton" mat-icon-button color="primary" (click)="refreshTables()">
25       <mat-icon>refresh</mat-icon>
26     </button>
27   </div>
28 </div>
29
30 <br>
31 <h4>Producers</h4>
32
33 <div class="table-container">
34   <mat-table id="producersTable" [dataSource]="producersDataSource" fixedLayout
35     matSort (matSortChange)="sortProducers($event)"
36     class="ei-coordinator-table mat-elevation-z8">
37     <ng-container matColumnDef="id">
38       <mat-header-cell *matHeaderCellDef mat-sort-header>
39         <div (click)="stopSort($event)">
40         <form style="display: flex" [formGroup]="producersFormControl">
41           <mat-form-field>
42             <input id="producerIdFilter" matInput formControlName="ei_producer_id">
43             <mat-placeholder>Producer ID</mat-placeholder>
44           </mat-form-field>
45         </form>
46       </div>
47       </mat-header-cell>
48       <mat-cell *matCellDef="let eiProducer"> {{eiProducer.ei_producer_id}} </mat-cell>
49     </ng-container>
50
51     <ng-container matColumnDef="types">
52       <mat-header-cell *matHeaderCellDef mat-sort-header>
53         <div (click)="stopSort($event)">
54         <form style="display: flex" [formGroup]="producersFormControl">
55           <mat-form-field>
56             <input id="producerTypesFilter" matInput formControlName="ei_producer_types">
57             <mat-placeholder>Producer types</mat-placeholder>
58           </mat-form-field>
59         </form>
60         </div>
61       </mat-header-cell>
62       <mat-cell *matCellDef="let eiProducer"> {{this.getProducerTypes(eiProducer)}} </mat-cell>
63     </ng-container>
64
65     <ng-container matColumnDef="status">
66       <mat-header-cell *matHeaderCellDef mat-sort-header>
67         <div (click)="stopSort($event)">
68         <form style="display: flex" [formGroup]="producersFormControl">
69           <mat-form-field>
70             <input id="producerStatusFilter" matInput formControlName="status">
71             <mat-placeholder>Producer status</mat-placeholder>
72           </mat-form-field>
73         </form>
74         </div>
75       </mat-header-cell>
76       <mat-cell *matCellDef="let eiProducer"> {{this.getProducerStatus(eiProducer)}} </mat-cell>
77     </ng-container>
78
79     <mat-header-row *matHeaderRowDef="['id', 'types', 'status']"></mat-header-row>
80     <mat-row *matRowDef="let row; columns: ['id', 'types', 'status'];"></mat-row>
81   </mat-table>
82 </div>
83
84 <br>
85 <h4>Jobs</h4>
86
87 <div class="table-container">
88     <mat-table id="jobsTable" [dataSource]="jobsDataSource" fixedLayout
89     matSort (matSortChange)="sortJobs($event)"
90     class="ei-coordinator-table mat-elevation-z8">
91     <ng-container matColumnDef="id">
92       <mat-header-cell *matHeaderCellDef mat-sort-header>
93         <div (click)="stopSort($event)">
94           <form style="display: flex" [formGroup]="jobsFormControl">
95             <mat-form-field>
96                         <input id="jobIdFilter" matInput formControlName="id">
97               <mat-placeholder>Job ID</mat-placeholder>
98             </mat-form-field>
99           </form>
100         </div>
101       </mat-header-cell>
102             <mat-cell *matCellDef="let eiJob"> {{eiJob.ei_job_identity}} </mat-cell>
103     </ng-container>
104     <ng-container matColumnDef="typeId">
105       <mat-header-cell *matHeaderCellDef mat-sort-header>
106         <div (click)="stopSort($event)">
107           <form style="display: flex" [formGroup]="jobsFormControl">
108             <mat-form-field>
109                         <input id="jobTypeIdFilter" matInput formControlName="typeId">
110               <mat-placeholder>Type ID</mat-placeholder>
111             </mat-form-field>
112           </form>
113         </div>
114       </mat-header-cell>
115             <mat-cell *matCellDef="let eiJob">{{this.getJobTypeId(eiJob)}} </mat-cell>
116     </ng-container>
117     <ng-container matColumnDef="owner">
118       <mat-header-cell *matHeaderCellDef mat-sort-header>
119         <div (click)="stopSort($event)">
120           <form style="display: flex" [formGroup]="jobsFormControl">
121             <mat-form-field>
122                         <input id="jobOwnerFilter" matInput formControlName="owner">
123               <mat-placeholder>Owner</mat-placeholder>
124             </mat-form-field>
125           </form>
126         </div>
127       </mat-header-cell>
128             <mat-cell *matCellDef="let eiJob">{{this.getJobOwner(eiJob)}} </mat-cell>
129     </ng-container>
130     <ng-container matColumnDef="targetUri">
131       <mat-header-cell *matHeaderCellDef mat-sort-header>
132         <div (click)="stopSort($event)">
133           <form style="display: flex" [formGroup]="jobsFormControl">
134             <mat-form-field>
135                         <input id="jobTargetUriFilter" matInput formControlName="targetUri">
136               <mat-placeholder>Target URI</mat-placeholder>
137             </mat-form-field>
138           </form>
139         </div>
140       </mat-header-cell>
141             <mat-cell *matCellDef="let eiJob"> {{eiJob.target_uri}}  </mat-cell>
142     </ng-container>
143     <mat-header-row *matHeaderRowDef="['id', 'typeId', 'owner', 'targetUri']"></mat-header-row>
144     <mat-row *matRowDef="let row; columns: ['id', 'typeId', 'owner', 'targetUri'];"></mat-row>
145   </mat-table>
146 </div>