2 ============LICENSE_START==========================================
4 ===================================================================
5 Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6 ===================================================================
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
13 http://www.apache.org/licenses/LICENSE-2.0
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.
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
26 https://creativecommons.org/licenses/by/4.0/
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.
34 ============LICENSE_END============================================
39 <div class="container">
41 <div class="onap-main-view-title">
42 <h1 class="heading-page">User Notifications</h1>
46 <!--Filter Search Box -->
48 <input matInput type="text" (keyup)="applyFilter($event.target.value)" placeholder="Search in entire table">
51 <!--Add Notifications-->
52 <button type="button" class="btn btn-primary" (click)="openAddNewNotificationModal('')">
53 <i class="icon ion-md-person-add"></i> Add Notification
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 (click)="openAddNewNotificationModal(element)"
62 id="rowheader_t1_{{i}}-messageSource" mat-cell *matCellDef="let element; let i = index;"> {{element.msgSource}}
66 <!-- Message Column -->
67 <ng-container matColumnDef="message">
68 <th id="col2" mat-header-cell *matHeaderCellDef> Message </th>
69 <td (click)="openAddNewNotificationModal(element)"
70 id="rowheader_t1_{{i}}-message" mat-cell *matCellDef="let element; let i=index;"> {{element.msgDescription}}
74 <!-- Start Date (Local Time) Column -->
75 <ng-container matColumnDef="startDateLocalTime">
76 <th id="col3" mat-header-cell *matHeaderCellDef> Start Date (Local Time) </th>
77 <td (click)="openAddNewNotificationModal(element)"
78 id="rowheader_t1_{{i}}-startDateLocalTime" mat-cell *matCellDef="let element; let i=index;"> {{element.startTime | date:'dd/MM/yyyy'}}
82 <!-- End Date (Local Time) Column -->
83 <ng-container matColumnDef="endDateLocalTime">
84 <th id="col4" mat-header-cell *matHeaderCellDef> End Date (Local Time) </th>
85 <td (click)="openAddNewNotificationModal(element)"
86 id="rowheader_t1_{{i}}-endDateLocalTime" mat-cell *matCellDef="let element; let i=index;">{{element.endTime | date:'dd/MM/yyyy'}}
90 <!-- Priority Column -->
91 <ng-container matColumnDef="priority">
92 <th id="col4" mat-header-cell *matHeaderCellDef> Priority </th>
93 <td (click)="openAddNewNotificationModal(element)"
94 id="rowheader_t1_{{i}}-priority" mat-cell *matCellDef="let element; let i=index;"> {{element.priority}}
98 <!-- Created By Column -->
99 <ng-container matColumnDef="createdBy">
100 <th id="col4" mat-header-cell *matHeaderCellDef> Created By </th>
101 <td (click)="openAddNewNotificationModal(element)"
102 id="rowheader_t1_{{i}}-createdBy" mat-cell *matCellDef="let element; let i=index;"> {{element.loginId}}
106 <!-- Created Time Column -->
107 <ng-container matColumnDef="createdTime">
108 <th id="col4" mat-header-cell *matHeaderCellDef> Created Time </th>
109 <td (click)="openAddNewNotificationModal(element)"
110 id="rowheader_t1_{{i}}-createdTime" mat-cell *matCellDef="let element; let i=index;"> {{element.createdDate}}
114 <!-- All Users (Roles)? Column -->
115 <ng-container matColumnDef="allUsersRoles">
116 <th id="col4" mat-header-cell *matHeaderCellDef> All Users (Roles)? </th>
117 <td (click)="openAddNewNotificationModal(element)"
118 id="rowheader_t1_{{i}}-allUsersRoles" mat-cell *matCellDef="let element; let i=index;"> {{element.isForAllRoles}}
122 <!-- view/Delete Column -->
123 <ng-container matColumnDef="viewOrDelete">
124 <th id="col4" mat-header-cell *matHeaderCellDef> Delete </th>
125 <td id="rowheader_t1_{{i}}" mat-cell *matCellDef="let element; let i=index;">
126 <span class="icon-trash" id="{{i}}-button-portal-admin-remove" (click)="removeUserNotification(element)">
127 <i class="icon ion-md-trash"></i>
132 <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
133 <tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
135 <mat-paginator [pageSizeOptions]="[10, 20]" showFirstLastButtons></mat-paginator>