Angular upgrade - Dynamic widget,widget catalog
[portal.git] / portal-FE-common / src / app / pages / get-access / get-access.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="ecomp-main-view-title">
40       <h1 class="heading-page">Get Access</h1>
41       <br>
42       <span> Visit <a id="url-access" [href]="getAccessUrl" target="_new">{{getAccessName}}</a>
43         {{getAccessInfo}}
44       </span>
45     </div>
46     <mat-form-field>
47       <input matInput type="text" (keyup)="applyFilter($event.target.value)" placeholder="Search in entire table">
48     </mat-form-field>
49     <span class="ecomp-spinner" *ngIf="showSpinner"></span>
50     <table mat-table [dataSource]="getAccessDataSource">
51       <!-- Function Column -->
52       <ng-container matColumnDef="function">
53         <th id="col1" mat-header-cell *matHeaderCellDef> Function </th>
54         <td id="rowheader_t1_{{i}}-function" mat-cell *matCellDef="let element; let i = index;">
55           <div id="access-page-function" *ngIf="element.ecomp_function !== 'Onap Function Not Available'">
56             {{element.ecomp_function}}</div>
57           <div id="access-page-function" *ngIf="element.ecomp_function === 'Onap Function Not Available'">
58             {{element.ecomp_function}}</div>
59         </td>
60       </ng-container>
61   
62       <!-- Application Name Column -->
63       <ng-container matColumnDef="applicationName">
64         <th id="col2" mat-header-cell *matHeaderCellDef> Application Name</th>
65         <td id="rowheader_t1_{{i}}-applicationName" mat-cell *matCellDef="let element; let i=index;"> {{element.app_name}}
66         </td>
67       </ng-container>
68   
69       <!-- Role Name Column -->
70       <ng-container matColumnDef="roleName">
71         <th id="col3" mat-header-cell *matHeaderCellDef> Role Name </th>
72         <td id="rowheader_t1_{{i}}-roleName" mat-cell *matCellDef="let element; let i=index;"> {{element.role_name}}
73         </td>
74       </ng-container>
75   
76       <!-- Current Role Column -->
77       <ng-container matColumnDef="currentRole">
78         <th id="col4" mat-header-cell *matHeaderCellDef> Current Role </th>
79         <td id="rowheader_t1_{{i}}-currentRole" mat-cell *matCellDef="let element; let i=index;">
80           <div id="access-page-currentRole" *ngIf="element.current_role === 'Y'">
81             <i class="icon ion-md-checkmark"></i>
82           </div>
83         </td>
84       </ng-container>
85   
86       <!-- Request Status Column -->
87       <ng-container matColumnDef="requestStatus">
88         <th id="col4" mat-header-cell *matHeaderCellDef> Request Status </th>
89         <td id="rowheader_t1_{{i}}-requestStatus" mat-cell *matCellDef="let element; let i=index;">
90           <div id="access-page-RequestAccess" *ngIf="element.request_type !== null">{{element.request_type}}</div>
91         </td>
92       </ng-container>
93   
94       <tr [hidden]="appTable.length === 0" mat-header-row *matHeaderRowDef="displayedColumns"></tr>
95       <tr mat-row *matRowDef="let row; columns: displayedColumns;" (click)="openExistingAdminModal(row)"></tr>
96     </table>
97     <mat-paginator [hidden]="appTable.length === 0" [pageSizeOptions]="[10, 20]" showFirstLastButtons></mat-paginator>
98   </div>