Merge "Added presentation of owner of EiJob"
[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="rd-global-page-title">Enrichment Information Coordinator</div>
23     <div class="refresh-button">
24         <button mat-icon-button color="primary" aria-label="Button with a refresh icon" (click)="refreshTables()">
25             <mat-icon>refresh</mat-icon>
26         </button>
27     </div>
28 </div>
29
30 <br>
31 <h4>Producers</h4>
32 <table mat-table EIProducerTable [dataSource]="eiProducersDataSource" [ngClass]="{'table-dark': darkMode}" matSort
33     multiTemplateDataRows class="ei-coordinator-table mat-elevation-z8">
34     <ng-container matColumnDef="id">
35         <th mat-header-cell *matHeaderCellDef> Producer ID </th>
36         <td mat-cell *matCellDef="let eiProducer"> {{this.getEIProducerId(eiProducer)}} </td>
37     </ng-container>
38     <ng-container matColumnDef="type">
39         <th mat-header-cell *matHeaderCellDef> Producer type </th>
40         <td mat-cell *matCellDef="let eiProducer"> {{this.getEIProducerTypes(eiProducer)}} </td>
41     </ng-container>
42     <ng-container matColumnDef="status">
43         <th mat-header-cell *matHeaderCellDef> Producer status </th>
44         <td mat-cell *matCellDef="let eiProducer"> {{this.getEIProducerStatus(eiProducer)}} </td>
45     </ng-container>
46     <tr mat-header-row *matHeaderRowDef="['id', 'type', 'status']"></tr>
47     <tr mat-row *matRowDef="let row; columns: ['id', 'type', 'status'];"></tr>
48 </table>
49
50 <br>
51 <h4>Jobs</h4>
52 <table mat-table EIJobTable [dataSource]="eiJobsDataSource" [ngClass]="{'table-dark': darkMode}" matSort
53     multiTemplateDataRows class="ei-coordinator-table mat-elevation-z8">
54     <ng-container matColumnDef="id">
55         <th mat-header-cell *matHeaderCellDef> Job ID </th>
56         <td mat-cell *matCellDef="let eiJob"> {{this.getDisplayName(eiJob)}} </td>
57     </ng-container>
58     <!--ng-container matColumnDef="data">
59         <th mat-header-cell *matHeaderCellDef> Job data </th>
60         <td mat-cell *matCellDef="let eiJob"> {{this.getEIJobInfo(eiJob)}} </td>
61     </ng-container-->
62     <ng-container matColumnDef="typeId">
63         <th mat-header-cell *matHeaderCellDef> Type ID </th>
64         <td mat-cell *matCellDef="let eiJob"> {{this.getEITypeId(eiJob)}} </td>
65     </ng-container>
66     <ng-container matColumnDef="owner">
67         <th mat-header-cell *matHeaderCellDef> Owner </th>
68         <td mat-cell *matCellDef="let eiJob"> {{eiJob.owner}} </td>
69     </ng-container>
70     <ng-container matColumnDef="targetUri">
71         <th mat-header-cell *matHeaderCellDef> Target URI </th>
72         <td mat-cell *matCellDef="let eiJob"> {{this.getTargetUri(eiJob)}} </td>
73     </ng-container>
74     <tr mat-header-row *matHeaderRowDef="['id', 'typeId', 'owner', 'targetUri']"></tr>
75     <tr mat-row *matRowDef="let row; columns: ['id', 'typeId', 'owner', 'targetUri'];"></tr>
76 </table>