Create component for EI Producers list
[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   <nrcp-producers-list></nrcp-producers-list>
33
34 <br>
35 <h4>Jobs</h4>
36
37 <div class="table-container">
38     <mat-table id="jobsTable" [dataSource]="jobsDataSource" fixedLayout
39     matSort (matSortChange)="sortJobs($event)"
40     class="ei-coordinator-table mat-elevation-z8">
41     <ng-container matColumnDef="id">
42       <mat-header-cell *matHeaderCellDef mat-sort-header>
43         <div (click)="stopSort($event)">
44           <form style="display: flex" [formGroup]="jobsFormControl">
45             <mat-form-field>
46                         <input id="jobIdFilter" matInput formControlName="id">
47               <mat-placeholder>Job ID</mat-placeholder>
48             </mat-form-field>
49           </form>
50         </div>
51       </mat-header-cell>
52             <mat-cell *matCellDef="let eiJob"> {{eiJob.ei_job_identity}} </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]="jobsFormControl">
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 eiJob">{{this.getJobTypeId(eiJob)}} </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]="jobsFormControl">
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 eiJob">{{this.getJobOwner(eiJob)}} </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]="jobsFormControl">
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 eiJob"> {{eiJob.target_uri}}  </mat-cell>
92     </ng-container>
93     <mat-header-row *matHeaderRowDef="['id', 'typeId', 'owner', 'targetUri']"></mat-header-row>
94     <mat-row *matRowDef="let row; columns: ['id', 'typeId', 'owner', 'targetUri'];"></mat-row>
95   </mat-table>
96 </div>