App onboarding fixes
[portal.git] / portal-FE-os / src / app / pages / application-onboarding / application-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 <div class="container">
39     <div class="w-ecomp-main-container">
40         <div class="applications-page-main" id="page-content">
41             <div id="microservice-onboarding-title" class="w-ecomp-main-view-title">
42                 <h1 class="heading-page"> Application Onboarding</h1>
43             </div>   
44             
45             <mat-form-field>
46                 <input matInput type="text" (keyup)="applyFilter($event.target.value)" placeholder="Search in entire table">
47             </mat-form-field>
48
49             <button type="button" style="float: right;" class="btn btn-primary" (click)="openAddApplicationModal('', 'add')">
50             <i class="icon ion-md-person-add"></i>&nbsp;Add App
51             </button>
52           
53             <div class="apps-table">
54                 <span class="ecomp-spinner" *ngIf="showEcompSpinner"></span>
55                 <!-- Applications Table goes here-->
56                 <table mat-table [dataSource]="dataSource" matSort>
57                     <!-- Thumbnail Column -->
58                     <ng-container matColumnDef="thumbnail">
59                         <th id="col1" mat-header-cell *matHeaderCellDef> Thumbnail  </th>
60                         <td (click)="openAddApplicationModal(element, 'edit')" id="rowheader_t1_{{i}}-thumbnail" 
61                             mat-cell *matCellDef="let element; let i = index;">
62                             <div><img class="small-thumbnail" src={{element.imageLink}}></div>
63                         </td>
64                     </ng-container>  
65                     
66                     <!-- Application Name Column -->
67                     <ng-container matColumnDef="applicationName">
68                         <th id="col2" mat-header-cell *matHeaderCellDef> Application Name </th>
69                         <td (click)="openAddApplicationModal(element, 'edit')" id="rowheader_t1_{{i}}-applicationName" 
70                             mat-cell *matCellDef="let element; let i=index;"> {{element.appName}} </td>
71                     </ng-container>
72
73                     <!-- Active Column -->
74                     <ng-container matColumnDef="active">
75                         <th id="col2" mat-header-cell *matHeaderCellDef> Active </th>
76                         <td (click)="openAddApplicationModal(element, 'edit')" id="rowheader_t1_{{i}}-active" 
77                             mat-cell *matCellDef="let element; let i=index;"> {{(element.isEnabled) ? 'yes' : 'no'}} </td>
78                     </ng-container>
79
80                     <!-- Integration Type Column -->
81                     <ng-container matColumnDef="integrationType">
82                         <th id="col2" mat-header-cell *matHeaderCellDef> Integration Type </th>
83                         <td (click)="openAddApplicationModal(element, 'edit')" id="rowheader_t1_{{i}}-integrationType" 
84                             mat-cell *matCellDef="let element; let i=index;"> {{(element.applicationType == 2) ? 'link' : 'standard'}} </td>
85                     </ng-container>
86                     
87                      <!-- Mode Of Integration Type Column -->
88                      <ng-container matColumnDef="modeOfIntegration">
89                         <th id="col2" mat-header-cell *matHeaderCellDef> Mode Of Integration </th>
90                         <td (click)="openAddApplicationModal(element, 'edit')" id="rowheader_t1_{{i}}-modeOfIntegration" 
91                             mat-cell *matCellDef="let element; let i=index;"> {{element.modeOfIntegration}} </td>
92                     </ng-container>
93
94                     <!-- Guest Access Column-->
95                     <ng-container matColumnDef="guestAccess">
96                         <th id="col2" mat-header-cell *matHeaderCellDef> Guest Access </th>
97                         <td (click)="openAddApplicationModal(element, 'edit')" id="rowheader_t1_{{i}}-guestAccess" 
98                             mat-cell *matCellDef="let element; let i=index;">{{(element.isOpen) ? 'yes' : 'no'}} </td>
99                     </ng-container>
100
101                     <!-- url  column -->
102                     <ng-container matColumnDef="landingPage">
103                         <th id="col2" mat-header-cell *matHeaderCellDef> Landing Page </th>
104                         <td (click)="openAddApplicationModal(element, 'edit')" id="rowheader_t1_{{i}}-url" 
105                             mat-cell *matCellDef="let element; let i=index;">{{element.landingPage}} </td>
106                     </ng-container>
107
108                         <!-- rest url  column -->
109                         <ng-container matColumnDef="restURL">
110                         <th id="col2" mat-header-cell *matHeaderCellDef> REST Url </th>
111                         <td (click)="openAddApplicationModal(element, 'edit')" id="rowheader_t1_{{i}}-restURL" 
112                             mat-cell *matCellDef="let element; let i=index;">{{element.restUrl}} </td>
113                     </ng-container>
114
115                     <!-- communicationKey column -->
116                     <ng-container matColumnDef="communicationKey">
117                         <th id="col2" mat-header-cell *matHeaderCellDef> Communication Key </th>
118                         <td (click)="openAddApplicationModal(element, 'edit')" id="rowheader_t1_{{i}}-communicationKey" 
119                             mat-cell *matCellDef="let element; let i=index;">{{element.uebKey}} </td>
120                     </ng-container>
121
122                     <!-- applicationNamespace column -->
123                     <ng-container matColumnDef="applicationNamespace">
124                         <th id="col2" mat-header-cell *matHeaderCellDef> Application Namespace </th>
125                         <td (click)="openAddApplicationModal(element, 'edit')" id="rowheader_t1_{{i}}-applicationNamespace" 
126                             mat-cell *matCellDef="let element; let i=index;">{{element.nameSpace}} </td>
127                     </ng-container>
128
129                     <!-- centralAuthAccess column -->
130                     <ng-container matColumnDef="centralAuthAccess">
131                         <th id="col2" mat-header-cell *matHeaderCellDef> Central Auth Access </th>
132                         <td (click)="openAddApplicationModal(element, 'edit')" id="rowheader_t1_{{i}}-centralAuthAccess" 
133                             mat-cell *matCellDef="let element; let i=index;">{{(element.rolesInAAF) ? 'yes' : 'no'}} </td>
134                     </ng-container>
135
136                     <!-- Delete Column -->
137                     <ng-container matColumnDef="delete">
138                         <th id="col4" mat-header-cell *matHeaderCellDef> Delete </th>
139                         <td id="rowheader_t1_{{i}}" mat-cell *matCellDef="let element; let i=index;">
140                         <span class="icon-trash" id="{{i}}-button-portal-admin-remove" (click)="deleteApplication(element)">
141                             <i class="icon ion-md-trash"></i>
142                         </span>
143                         </td>
144                     </ng-container>
145                     <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
146                     <tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
147                 </table>
148                 <mat-paginator [pageSizeOptions]="[10, 20]" showFirstLastButtons></mat-paginator>
149               </div>
150           </div>
151       </div>
152   </div>