Security/ Package Name changes
[portal.git] / ecomp-portal-FE-common / client / app / views / user-notifications-admin / user.notifications.tpl.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   ECOMP is a trademark and service mark of AT&T Intellectual Property.
37   -->
38 <div class="w-ecomp-user-notification-admin"
39         ng-style="{bottom: tabBottom}">
40          <div class="w-ecomp-main-container" >
41         <div class="user-notification" id="page-content">
42                 <div id="title" class="w-ecomp-main-view-title">
43                         <h1 class="heading-page" >User Notifications</h1>
44                 </div>
45                 <div class="userNotifTable">
46                 
47                    <div class="table-control-fields">
48                    <input class="input-table-search" type="text" id="table-search-field"
49                                                 placeholder="Search in entire table" ng-model="searchString" />
50                                         </div>
51                           <div class="table-control-buttons" ng-controller="userNotificationsCtrl">
52                                                 <button class="btn btn-alt btn-small"id="button-openAddNewApp"   ng-click="userNotifications.openUserNotificationModal()" >
53                                         <i class="icon-people-userbookmark" aria-hidden="true"></i>&nbsp;Add Notification
54                                 </button> 
55                                         </div>
56                 
57                         <span class="ecomp-spinner" ng-show="isLoadingTable"></span>
58                         <div class="b2b-table-div" b2b-table table-data="adminNotifications"
59                                 ng-hide="isLoadingTable" id="table-main" search-string="searchString">
60                                 <table  id="table-main" >
61                                         <thead b2b-table-row type="header">
62                                                 <tr>
63                                                         <th id="th-notif-0" b2b-table-header key="msgSource"
64                                                                 sortable="true" style=" width: 10px;">Message Source</th>
65                                                         <th id="th-notif-1" b2b-table-header key="msgHeader"
66                                                                 sortable="true" style=" width: 10px;">Message</th>
67                                                         <th id="th-notif-2"  b2b-table-header key="startTime"
68                                                                 sortable="true">Start Date (Local Time)</th>
69                                                         <th id="th-notif-3" b2b-table-header key="endTime"
70                                                                 sortable="true">End Date  (Local Time)</th>
71                                                         <th id="th-notif-4" b2b-table-header key="priority"
72                                                                 sortable="true">Priority</th>
73                                                         <th id="th-notif-5" b2b-table-header key="loginId"
74                                                                 sortable="true">Created By</th>
75                                                         <th id="th-notif-6" b2b-table-header key="createdDate"
76                                                                 sortable="true">Created Time</th>
77                                                         <th id="th-notif-7" b2b-table-header key="isForAllRoles"
78                                                                 sortable="true">All Users (Roles)?</th>
79                                                         <th id="th-notif-8" b2b-table-header key="edit" sortable="false">View/Delete</th>
80                                                 </tr>
81                                         </thead>
82                                         <tbody b2b-table-row type="body" class="table-body"
83                                 row-repeat="rowData in tableAdminNotifItems | filter:searchString | startFrom:(currentPage1-1)*viewPerPage1 | limitTo:viewPerPage1 "track-by="$index">
84                                                 <tr>
85                                                         <td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">
86                                                                 <div  id="{{$index}}-msgSource">{{rowData.msgSource}}</div>
87                                                         </td>
88                                                         <td b2b-table-body style="{{rowData.expired?' color:lightgray !important':''}}">
89                                                                 <div id="{{$index}}-msgHeader" style="font-weight: bold;">{{rowData.msgHeader}}</div>
90                                                                 <div id="{{$index}}-message" ng-if="rowData.msgSource==='EP'" style="width:500px"  ng-bind="rowData.msgDescription"></div>
91                                                                 <div id="{{$index}}-message" ng-if="rowData.msgSource!=='EP'"  ng-bind="rowData.msgDescription| elipsis: 27"></div>
92                                                         </td>
93                                                         <td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">
94                                                                 <div id="{{$index}}-startTime">{{rowData.startTime |
95                                                                         date:'medium'}}</div>
96                                                         </td >
97                                                         <td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">
98                                                                 <div id="{{$index}}-endTime">{{rowData.endTime |
99                                                                         date:'medium'}}</div>
100                                                         </td>
101                                                         <td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">
102                                                                 <div id="{{$index}}-priority">{{priorityItems[rowData.priority]}}</div>
103                                                         </td>
104                                                         <td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">
105                                                                 <div id="{{$index}}-loginId">{{!rowData.loginId ?externalNotification: rowData.loginId}}</div>
106                                                         </td>
107                                                         <td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">
108                                                                 <div id="{{$index}}-createdDate">{{rowData.createdDate |
109                                                                         date:'medium'}}</div>
110                                                         </td>
111                                                         <td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">
112                                                                 <div id="{{$index}}-isForAllRoles">{{rowData.isForAllRoles}}</div>
113                                                         </td>
114                                                         <td b2b-table-body style="{{rowData.expired?' color:lightgray !important':''}}">
115                                                         
116                                                         <p id="{{$index}}-notification-edit" ng-if="rowData.msgSource==='EP'" ng-click="userNotifications.editUserNotificationModal(rowData)"class="icon-overview"  >  /</p> 
117                                                         <p id="{{$index}}-notification-edit" ng-if="rowData.msgSource!=='EP'" ng-click="userNotifications.showDetailedJsonMessage(rowData)"class="icon-overview"  >/ </p> 
118                                                         <p id="{{$index}}-notification-delete" ng-click="userNotifications.removeUserNotification(rowData)" class="icon-misc-trash"></p> 
119                                                         
120                                                 
121                                                         </td>
122                                                 </tr>
123                                         </tbody>
124                                 </table>
125                                 
126                         </div>
127                                         <div b2b-pagination="" total-pages="totalPages1"
128                                                 current-page="currentPage1" click-handler="customPageHandler"
129                                                 role="navigation" aria-label="Customer Data Pages"></div>
130                                 
131                                                 
132                 </div>
133         </div>
134 </div>