Uplift to Angular 9
[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 #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 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 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.getEIProducerTypes(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 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.getEIProducerStatus(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
82   </mat-table>
83 </div>
84
85 <br>
86 <h4>Jobs</h4>
87
88 <div class="table-container">
89   <mat-table [dataSource]="jobsDataSource" fixedLayout 
90     matSort (matSortChange)="sortJobs($event)"
91     class="ei-coordinator-table mat-elevation-z8">
92     <ng-container matColumnDef="id">
93       <mat-header-cell *matHeaderCellDef mat-sort-header>
94         <div (click)="stopSort($event)">
95           <form style="display: flex" [formGroup]="jobsFormControl">
96             <mat-form-field>
97               <input matInput formControlName="id">
98               <mat-placeholder>Job ID</mat-placeholder>
99             </mat-form-field>
100           </form>
101         </div>
102       </mat-header-cell>
103       <mat-cell *matCellDef="let eiJob"> {{this.getDisplayName(eiJob)}} </mat-cell>
104     </ng-container>
105     <ng-container matColumnDef="typeId">
106       <mat-header-cell *matHeaderCellDef mat-sort-header>
107         <div (click)="stopSort($event)">
108           <form style="display: flex" [formGroup]="jobsFormControl">
109             <mat-form-field>
110               <input matInput formControlName="typeId">
111               <mat-placeholder>Type ID</mat-placeholder>
112             </mat-form-field>
113           </form>
114         </div>
115       </mat-header-cell>
116       <mat-cell *matCellDef="let eiJob">{{this.getEITypeId(eiJob)}} </mat-cell>
117     </ng-container>
118     <ng-container matColumnDef="owner">
119       <mat-header-cell *matHeaderCellDef mat-sort-header>
120         <div (click)="stopSort($event)">
121           <form style="display: flex" [formGroup]="jobsFormControl">
122             <mat-form-field>
123               <input matInput formControlName="owner">
124               <mat-placeholder>Owner</mat-placeholder>
125             </mat-form-field>
126           </form>
127         </div>
128       </mat-header-cell>
129       <mat-cell *matCellDef="let eiJob">{{eiJob.owner}} </mat-cell>
130     </ng-container>
131     <ng-container matColumnDef="targetUri">
132       <mat-header-cell *matHeaderCellDef mat-sort-header>
133         <div (click)="stopSort($event)">
134           <form style="display: flex" [formGroup]="jobsFormControl">
135             <mat-form-field>
136               <input matInput formControlName="targetUri">
137               <mat-placeholder>Target URI</mat-placeholder>
138             </mat-form-field>
139           </form>
140         </div>
141       </mat-header-cell>
142       <mat-cell *matCellDef="let eiJob"> {{this.getTargetUri(eiJob)}} </mat-cell>
143     </ng-container>
144     <mat-header-row *matHeaderRowDef="['id', 'typeId', 'owner', 'targetUri']"></mat-header-row>
145     <mat-row *matRowDef="let row; columns: ['id', 'typeId', 'owner', 'targetUri'];"></mat-row>
146   </mat-table>
147 </div>