Angular upgrade - Dynamic widget,widget catalog
[portal.git] / portal-FE-common / src / app / pages / web-analytics / web-analytics.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">Web Analytics Onboarding</h1>
41     </div>
42
43     <mat-form-field>
44       <input matInput type="text" (keyup)="applyFilter($event.target.value)" placeholder="Search in entire table">
45     </mat-form-field>
46
47     <button type="button" style="float: right;" class="btn btn-primary" (click)="openWebAnalyticsModal('')">
48         <i class="icon ion-md-person-add"></i>Add Web Analytics Report
49     </button>
50
51     <div class="webanalytics-table">
52         <table mat-table [dataSource]="dataSource" matSort>
53           <!-- Account Name Column -->
54           <ng-container matColumnDef="applicationName">
55             <th id="col1" mat-header-cell *matHeaderCellDef> Application Name  </th>
56             <td (click)="openWebAnalyticsModal(element)" id="rowheader_t1_{{i}}-applicationName" 
57               mat-cell *matCellDef="let element; let i = index;"> {{element.appName}}
58             </td>
59           </ng-container>
60       
61           <!-- Report Name Column -->
62           <ng-container matColumnDef="reportName">
63             <th id="col2" mat-header-cell *matHeaderCellDef> Report Name </th>
64             <td (click)="openWebAnalyticsModal(element)" id="rowheader_t1_{{i}}-reportName" 
65               mat-cell *matCellDef="let element; let i=index;"> {{element.reportName}} </td>
66           </ng-container>
67
68           <!-- Report URL Column -->
69           <ng-container matColumnDef="reportURL">
70             <th id="col2" mat-header-cell *matHeaderCellDef> Report URL </th>
71             <td (click)="openWebAnalyticsModal(element)" id="rowheader_t1_{{i}}-reportURL" 
72               mat-cell *matCellDef="let element; let i=index;"> {{element.reportSrc}} </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)="deleteWebAnalyticsReport(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>
90 </div>
91