Merge "SystemUserRolesException.java-junits"
[portal.git] / portal-FE-common / src / app / pages / microservice-onboarding / microservice-onboarding.component.html
1 <!--
2   ============LICENSE_START==========================================
3   ONAP Portal
4   ===================================================================
5   Copyright (C) 2019 AT&T Intellectual Property. All rights reserved.
6   ===================================================================
7  
8   Unless otherwise specified, all software contained herein is licensed
9   under the Apache License, Version 2.0 (the "License");
10   you may not use this software except in compliance with the License.
11   You may obtain a copy of the License at
12  
13               http://www.apache.org/licenses/LICENSE-2.0
14  
15   Unless required by applicable law or agreed to in writing, software
16   distributed under the License is distributed on an "AS IS" BASIS,
17   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18   See the License for the specific language governing permissions and
19   limitations under the License.
20  
21   Unless otherwise specified, all documentation contained herein is licensed
22   under the Creative Commons License, Attribution 4.0 Intl. (the "License");
23   you may not use this documentation except in compliance with the License.
24   You may obtain a copy of the License at
25  
26               https://creativecommons.org/licenses/by/4.0/
27  
28   Unless required by applicable law or agreed to in writing, documentation
29   distributed under the License is distributed on an "AS IS" BASIS,
30   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31   See the License for the specific language governing permissions and
32   limitations under the License.
33  
34   ============LICENSE_END============================================
35  
36   
37   -->
38
39 <div class="container"> 
40   <div id="microservice-onboarding-title" class="w-ecomp-main-view-title">
41       <h1 class="heading-page"> Microservice Onboarding</h1>
42   </div>
43
44   <mat-form-field>
45     <input matInput type="text" (keyup)="applyFilter($event.target.value)" placeholder="Search in entire table">
46   </mat-form-field>
47
48   <button type="button" style="float: right;" class="btn btn-primary" (click)="openAddNewMicroserviceModal('')">
49     <i class="icon ion-md-person-add"></i>Add Microservice
50   </button>
51
52   <table mat-table [dataSource]="dataSource" matSort>
53     <!-- Microservice Name Column -->
54     <ng-container matColumnDef="microserviceName">
55       <th id="col1" mat-header-cell *matHeaderCellDef mat-sort-header> Microservice Name  </th>
56       <td (click)="openAddNewMicroserviceModal(element)" id="rowheader_t1_{{i}}-microserviceName" 
57         mat-cell *matCellDef="let element; let i = index;"> {{element.name}}
58       </td>
59     </ng-container>
60
61     <!-- Microservice serviceEndPointURL Column -->
62     <ng-container matColumnDef="serviceEndPointURL">
63       <th id="col2" mat-header-cell *matHeaderCellDef> Service End Point URL </th>
64       <td (click)="openAddNewMicroserviceModal(element)" id="rowheader_t1_{{i}}-serviceEndPointURL" 
65         mat-cell *matCellDef="let element; let i=index;"> {{element.url}} </td>
66     </ng-container>
67
68     <!-- Microservice securityType Column -->
69     <ng-container matColumnDef="securityType">
70       <th id="col2" mat-header-cell *matHeaderCellDef> Security Type </th>
71       <td (click)="openAddNewMicroserviceModal(element)" id="rowheader_t1_{{i}}-securityType" 
72         mat-cell *matCellDef="let element; let i=index;"> {{element.securityType}} </td>
73     </ng-container>
74
75     <!-- Delete Column -->
76     <ng-container matColumnDef="delete">
77       <th id="col4" mat-header-cell *matHeaderCellDef> Delete </th>
78       <td id="rowheader_t1_{{i}}" mat-cell *matCellDef="let element; let i=index;">
79         <span class="icon-trash" id="{{i}}-button-portal-admin-remove" (click)="deleteService(element)">
80           <i class="icon ion-md-trash"></i>
81         </span>
82       </td>
83     </ng-container>
84
85     <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
86     <tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
87   </table>
88   <mat-paginator [pageSizeOptions]="[10, 20]" showFirstLastButtons></mat-paginator>
89 </div>