Added new componetnts inside page modules
[portal.git] / portal-FE-common / src / app / pages / user-notification-admin / user-notification-admin.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       <!-- Heading -->
41       <div class="onap-main-view-title">
42         <h1 class="heading-page">User Notifications</h1>
43       </div>
44       &nbsp;
45     
46       <!--Filter Search Box -->
47       <mat-form-field>
48         <input matInput type="text" (keyup)="applyFilter($event.target.value)" placeholder="Search in entire table">
49       </mat-form-field> 
50
51       <!--Add Notifications-->
52       <button type="button" class="btn btn-primary" (click)="openAddNewNotificationModal('')">
53         <i class="icon ion-md-person-add"></i> Add Notification
54       </button>
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 (click)="openAddNewNotificationModal(element)" 
62             id="rowheader_t1_{{i}}-messageSource" mat-cell *matCellDef="let element; let i = index;"> {{element.msgSource}}
63           </td>
64         </ng-container>
65     
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}}
71           </td>
72         </ng-container>
73     
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'}}
79           </td>
80         </ng-container>
81     
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'}}
87           </td>
88         </ng-container>
89     
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}}
95           </td>
96         </ng-container>
97     
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}}
103           </td>
104         </ng-container>
105     
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}}
111           </td>
112         </ng-container>
113
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}}
119             </td>
120         </ng-container>
121
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>
128             </span>
129           </td>
130         </ng-container>
131     
132         <tr mat-header-row *matHeaderRowDef="displayedColumns"></tr>
133         <tr mat-row *matRowDef="let row; columns: displayedColumns;"></tr>
134       </table>
135       <mat-paginator [pageSizeOptions]="[10, 20]" showFirstLastButtons></mat-paginator>
136     
137     </div>