Change prefix to match application name
[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 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 <form [formGroup]="formGroup" class="filter-form">
33     <input
34       type="text"
35       class="form-control"
36       name="searchString"
37       placeholder="Search Producer"
38       formControlName="filter"
39     />
40 </form>
41 <div class="table-container">
42     <table [ngClass]="{'table-dark': darkMode}" matSort
43     class="ei-coordinator-table mat-elevation-z8">
44         <tr>
45             <th>Producer ID</th>
46             <th>Producer type</th>
47             <th>Producer status</th>
48         </tr>
49         <tr *ngFor="let eiProducer of filteredProducers$ | async">
50             <td class="text-left">
51                 {{eiProducer.ei_producer_id}}
52             </td>
53             <td class="text-left">
54                 {{this.getEIProducerTypes(eiProducer)}}
55             </td>
56             <td class="text-left">
57                 {{this.getEIProducerStatus(eiProducer)}}
58             </td>
59         </tr>
60     </table>
61 </div>
62
63 <br>
64 <h4>Jobs</h4>
65 <div class="table-container">
66     <table mat-table EIJobTable [dataSource]="eiJobsDataSource" [ngClass]="{'table-dark': darkMode}" matSort
67         multiTemplateDataRows class="ei-coordinator-table mat-elevation-z8">
68         <ng-container matColumnDef="id">
69             <th mat-header-cell *matHeaderCellDef> Job ID </th>
70             <td mat-cell *matCellDef="let eiJob"> {{this.getDisplayName(eiJob)}} </td>
71         </ng-container>
72         <ng-container matColumnDef="typeId">
73             <th mat-header-cell *matHeaderCellDef> Type ID </th>
74             <td mat-cell *matCellDef="let eiJob"> {{this.getEITypeId(eiJob)}} </td>
75         </ng-container>
76         <ng-container matColumnDef="owner">
77             <th mat-header-cell *matHeaderCellDef> Owner </th>
78             <td mat-cell *matCellDef="let eiJob"> {{eiJob.owner}} </td>
79         </ng-container>
80         <ng-container matColumnDef="targetUri">
81             <th mat-header-cell *matHeaderCellDef> Target URI </th>
82             <td mat-cell *matCellDef="let eiJob"> {{this.getTargetUri(eiJob)}} </td>
83         </ng-container>
84         <tr mat-header-row *matHeaderRowDef="['id', 'typeId', 'owner', 'targetUri']"></tr>
85         <tr mat-row *matRowDef="let row; columns: ['id', 'typeId', 'owner', 'targetUri'];"></tr>
86     </table>
87 </div>