Added new componetnts inside page modules
[portal.git] / portal-FE-common / src / app / pages / notification-history / notification-history.component.html
1 <!--
2   ============LICENSE_START==========================================
3   ONAP Portal
4   ===================================================================
5   Copyright (C) 2017 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
41   <!-- Heading -->
42   <div class="onap-main-view-title">
43     <h1 class="heading-page">Recent Notifications</h1>
44   </div>
45   <br />
46   <div>
47     This table shows notifications published in the last 30 days.
48   </div>
49   &nbsp;
50
51   <!--Filter Search Box -->
52   <mat-form-field>
53     <input matInput type="text" (keyup)="applyFilter($event.target.value)" placeholder="Search in entire table">
54   </mat-form-field> 
55
56   <!-- Recent Notification History table -->
57   <table mat-table [dataSource]="notificationsDataSource" matSort>
58     <!-- Message Source Column -->
59     <ng-container matColumnDef="messageSource">
60       <th id="col1" mat-header-cell *matHeaderCellDef> Message Source </th>
61       <td id="rowheader_t1_{{i}}-messageSource" mat-cell *matCellDef="let element; let i = index;"> {{element.msgSource}}
62       </td>
63     </ng-container>
64
65     <!-- Message Column -->
66     <ng-container matColumnDef="message">
67       <th id="col2" mat-header-cell *matHeaderCellDef> Message  </th>
68       <td id="rowheader_t1_{{i}}-message" mat-cell *matCellDef="let element; let i=index;"> {{element.msgDescription}}
69       </td>
70     </ng-container>
71
72     <!-- Start Date (Local Time) Column -->
73     <ng-container matColumnDef="startDateLocalTime">
74       <th id="col3" mat-header-cell *matHeaderCellDef> Start Date (Local Time)  </th>
75       <td id="rowheader_t1_{{i}}-startDateLocalTime" mat-cell *matCellDef="let element; let i=index;"> {{element.startTime}}
76       </td>
77     </ng-container>
78
79     <!-- End Date (Local Time) Column -->
80     <ng-container matColumnDef="endDateLocalTime">
81       <th id="col4" mat-header-cell *matHeaderCellDef> End Date (Local Time)  </th>
82       <td id="rowheader_t1_{{i}}-endDateLocalTime" mat-cell *matCellDef="let element; let i=index;">{{element.endTime}}
83       </td>
84     </ng-container>
85
86      <!-- Priority Column -->
87      <ng-container matColumnDef="priority">
88       <th id="col4" mat-header-cell *matHeaderCellDef> Priority </th>
89       <td id="rowheader_t1_{{i}}-priority" mat-cell *matCellDef="let element; let i=index;"> {{element.priority}}
90       </td>
91     </ng-container>
92
93      <!-- Created By Column -->
94      <ng-container matColumnDef="createdBy">
95       <th id="col4" mat-header-cell *matHeaderCellDef> Created By </th>
96       <td id="rowheader_t1_{{i}}-createdBy" mat-cell *matCellDef="let element; let i=index;"> {{element.loginId}}
97       </td>
98     </ng-container>
99
100      <!-- Created Time Column -->
101      <ng-container matColumnDef="createdTime">
102       <th id="col4" mat-header-cell *matHeaderCellDef> Created Time </th>
103       <td id="rowheader_t1_{{i}}-createdTime" mat-cell *matCellDef="let element; let i=index;"> {{element.createdDate}}
104       </td>
105     </ng-container>
106
107     <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
108     <tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
109   </table>
110   <mat-paginator [pageSizeOptions]="[10, 20]" showFirstLastButtons></mat-paginator>
111
112 </div>