-<!--\r
- ================================================================================\r
- ECOMP Portal\r
- ================================================================================\r
- Copyright (C) 2017 AT&T Intellectual Property\r
- ================================================================================\r
- Licensed under the Apache License, Version 2.0 (the "License");\r
- you may not use this file except in compliance with the License.\r
- You may obtain a copy of the License at\r
- \r
- http://www.apache.org/licenses/LICENSE-2.0\r
- \r
- Unless required by applicable law or agreed to in writing, software\r
- distributed under the License is distributed on an "AS IS" BASIS,\r
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
- See the License for the specific language governing permissions and\r
- limitations under the License.\r
- ================================================================================\r
- -->\r
-<div class="w-ecomp-user-notification-admin"\r
- ng-style="{bottom: tabBottom}">\r
- <div class="w-ecomp-main-container" >\r
- <div class="user-notification" id="page-content">\r
- <div id="title" class="w-ecomp-main-view-title">\r
- <h1 class="heading-page" >User Notifications</h1>\r
- </div>\r
- <div class="userNotifTable">\r
- \r
- <div class="table-control-fields">\r
- <input class="input-table-search" type="text" id="table-search-field"\r
- placeholder="Search in entire table" ng-model="searchString" />\r
- </div>\r
- <div class="table-control-buttons" ng-controller="userNotificationsCtrl">\r
- <button class="btn btn-alt btn-small"id="button-openAddNewApp" ng-click="openUserNotificationModal()" >\r
- <i class="icon-people-userbookmark" aria-hidden="true"></i> Add Notification\r
- </button> \r
- </div>\r
- \r
- <span class="ecomp-spinner" ng-show="isLoadingTable"></span>\r
- <div class="b2b-table-div"\r
- ng-hide="isLoadingTable" id="table-main">\r
- <table b2b-table id="table-main" table-data="adminNotifications" search-string="searchString"\r
- current-page="ignoredCurrentPage">\r
- <thead b2b-table-row type="header">\r
- <tr>\r
- <th id="th-notif-0" b2b-table-header key="msgSource"\r
- sortable="true" style=" width: 10px;">Message Source</th>\r
- <th id="th-notif-1" b2b-table-header key="msgHeader"\r
- sortable="true" style=" width: 10px;">Message</th>\r
- <th id="th-notif-2" b2b-table-header key="startTime"\r
- sortable="true">Start Date (Local Time)</th>\r
- <th id="th-notif-3" b2b-table-header key="endTime"\r
- sortable="true">End Date (Local Time)</th>\r
- <th id="th-notif-4" b2b-table-header key="priority"\r
- sortable="true">Priority</th>\r
- <th id="th-notif-5" b2b-table-header key="loginId"\r
- sortable="true">Created By</th>\r
- <th id="th-notif-6" b2b-table-header key="createdDate"\r
- sortable="true">Created Time</th>\r
- <th id="th-notif-7" b2b-table-header key="isForAllRoles"\r
- sortable="true">All Users (Roles)?</th>\r
- <th id="th-notif-8" b2b-table-header key="edit" sortable="false">View/Delete</th>\r
- </tr>\r
- </thead>\r
- <tbody b2b-table-row type="body" class="table-body"\r
- row-repeat="rowData in tableAdminNotifItems">\r
- <tr>\r
- <td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">\r
- <div id="{{$index}}-msgSource">{{rowData.msgSource}}</div>\r
- </td>\r
- <td b2b-table-body style="{{rowData.expired?' color:lightgray !important':''}}">\r
- <div id="{{$index}}-msgHeader" style="font-weight: bold;">{{rowData.msgHeader}}</div>\r
- <div id="{{$index}}-message" ng-if="rowData.msgSource==='EP'" style="width:500px" ng-bind="rowData.msgDescription"></div>\r
- <div id="{{$index}}-message" ng-if="rowData.msgSource!=='EP'" ng-bind="rowData.msgDescription| elipsis: 27"></div>\r
- </td>\r
- <td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">\r
- <div id="{{$index}}-startTime">{{rowData.startTime |\r
- date:'medium'}}</div>\r
- </td >\r
- <td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">\r
- <div id="{{$index}}-endTime">{{rowData.endTime |\r
- date:'medium'}}</div>\r
- </td>\r
- <td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">\r
- <div id="{{$index}}-priority">{{priorityItems[rowData.priority]}}</div>\r
- </td>\r
- <td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">\r
- <div id="{{$index}}-loginId">{{!rowData.loginId ?externalNotification: rowData.loginId}}</div>\r
- </td>\r
- <td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">\r
- <div id="{{$index}}-createdDate">{{rowData.createdDate |\r
- date:'medium'}}</div>\r
- </td>\r
- <td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">\r
- <div id="{{$index}}-isForAllRoles">{{rowData.isForAllRoles}}</div>\r
- </td>\r
- <td b2b-table-body style="{{rowData.expired?' color:lightgray !important':''}}">\r
- \r
- <p id="{{$index}}-notification-edit" ng-if="rowData.msgSource==='EP'" ng-click="editUserNotificationModal(rowData)"class="icon-overview" > /</p> \r
- <p id="{{$index}}-notification-edit" ng-if="rowData.msgSource!=='EP'" ng-click="showDetailedJsonMessage(rowData)"class="icon-overview" >/ </p> \r
- <p id="{{$index}}-notification-delete" ng-click="removeUserNotification(rowData)" class="icon-misc-trash"></p> \r
- \r
- \r
- </td>\r
- </tr>\r
- </tbody>\r
- </table>\r
- \r
- </div>\r
- <div b2b-pagination="" total-pages="totalPages1"\r
- current-page="currentPage1" click-handler="customPageHandler"\r
- role="navigation" aria-label="Customer Data Pages"></div>\r
- \r
- \r
- </div>\r
- </div>\r
-</div>\r
+<!--
+ ============LICENSE_START==========================================
+ ONAP Portal
+ ===================================================================
+ Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
+ ===================================================================
+
+ Unless otherwise specified, all software contained herein is licensed
+ under the Apache License, Version 2.0 (the "License");
+ you may not use this software except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ Unless otherwise specified, all documentation contained herein is licensed
+ under the Creative Commons License, Attribution 4.0 Intl. (the "License");
+ you may not use this documentation except in compliance with the License.
+ You may obtain a copy of the License at
+
+ https://creativecommons.org/licenses/by/4.0/
+
+ Unless required by applicable law or agreed to in writing, documentation
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
+ ============LICENSE_END============================================
+
+
+ -->
+<div class="w-ecomp-user-notification-admin"
+ ng-style="{bottom: tabBottom}">
+ <div class="w-ecomp-main-container" >
+ <div class="user-notification" id="page-content">
+ <div id="title" class="w-ecomp-main-view-title">
+ <h1 class="heading-page" >User Notifications</h1>
+ </div>
+ <div class="userNotifTable">
+
+ <div class="table-control-fields">
+ <input class="input-table-search" type="text" id="table-search-field"
+ placeholder="Search in entire table" ng-model="searchString" />
+ </div>
+ <div class="table-control-buttons" ng-controller="userNotificationsCtrl">
+ <button class="btn btn-alt btn-small"id="button-openAddNewApp" ng-click="userNotifications.openUserNotificationModal()" >
+ <i class="icon-people-userbookmark" aria-hidden="true"></i> Add Notification
+ </button>
+ </div>
+
+ <span class="ecomp-spinner" ng-show="isLoadingTable"></span>
+ <div class="b2b-table-div" b2b-table table-data="adminNotifications"
+ ng-hide="isLoadingTable" id="table-main" search-string="searchString">
+ <table id="table-main" >
+ <thead b2b-table-row type="header">
+ <tr>
+ <th id="th-notif-0" b2b-table-header key="msgSource"
+ sortable="true" style=" width: 10px;">Message Source</th>
+ <th id="th-notif-1" b2b-table-header key="msgHeader"
+ sortable="true" style=" width: 10px;">Message</th>
+ <th id="th-notif-2" b2b-table-header key="startTime"
+ sortable="true">Start Date (Local Time)</th>
+ <th id="th-notif-3" b2b-table-header key="endTime"
+ sortable="true">End Date (Local Time)</th>
+ <th id="th-notif-4" b2b-table-header key="priority"
+ sortable="true">Priority</th>
+ <th id="th-notif-5" b2b-table-header key="loginId"
+ sortable="true">Created By</th>
+ <th id="th-notif-6" b2b-table-header key="createdDate"
+ sortable="true">Created Time</th>
+ <th id="th-notif-7" b2b-table-header key="isForAllRoles"
+ sortable="true">All Users (Roles)?</th>
+ <th id="th-notif-8" b2b-table-header key="edit" sortable="false">View/Delete</th>
+ </tr>
+ </thead>
+ <tbody b2b-table-row type="body" class="table-body"
+ row-repeat="rowData in tableAdminNotifItems | filter:searchString | startFrom:(currentPage1-1)*viewPerPage1 | limitTo:viewPerPage1 "track-by="$index">
+ <tr>
+ <td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">
+ <div id="{{$index}}-msgSource">{{rowData.msgSource}}</div>
+ </td>
+ <td b2b-table-body style="{{rowData.expired?' color:lightgray !important':''}}">
+ <div id="{{$index}}-msgHeader" style="font-weight: bold;">{{rowData.msgHeader}}</div>
+ <div id="{{$index}}-message" ng-if="rowData.msgSource==='EP'" style="width:500px" ng-bind="rowData.msgDescription"></div>
+ <div id="{{$index}}-message" ng-if="rowData.msgSource!=='EP'" ng-bind="rowData.msgDescription| elipsis: 27"></div>
+ </td>
+ <td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">
+ <div id="{{$index}}-startTime">{{rowData.startTime |
+ date:'medium'}}</div>
+ </td >
+ <td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">
+ <div id="{{$index}}-endTime">{{rowData.endTime |
+ date:'medium'}}</div>
+ </td>
+ <td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">
+ <div id="{{$index}}-priority">{{priorityItems[rowData.priority]}}</div>
+ </td>
+ <td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">
+ <div id="{{$index}}-loginId">{{!rowData.loginId ?externalNotification: rowData.loginId}}</div>
+ </td>
+ <td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">
+ <div id="{{$index}}-createdDate">{{rowData.createdDate |
+ date:'medium'}}</div>
+ </td>
+ <td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">
+ <div id="{{$index}}-isForAllRoles">{{rowData.isForAllRoles}}</div>
+ </td>
+ <td b2b-table-body style="{{rowData.expired?' color:lightgray !important':''}}">
+
+ <p id="{{$index}}-notification-edit" ng-if="rowData.msgSource==='EP'" ng-click="userNotifications.editUserNotificationModal(rowData)"class="icon-overview" > /</p>
+ <p id="{{$index}}-notification-edit" ng-if="rowData.msgSource!=='EP'" ng-click="userNotifications.showDetailedJsonMessage(rowData)"class="icon-overview" >/ </p>
+ <p id="{{$index}}-notification-delete" ng-click="userNotifications.removeUserNotification(rowData)" class="icon-misc-trash"></p>
+
+
+ </td>
+ </tr>
+ </tbody>
+ </table>
+
+ </div>
+ <div b2b-pagination="" total-pages="totalPages1"
+ current-page="currentPage1" click-handler="customPageHandler"
+ role="navigation" aria-label="Customer Data Pages"></div>
+
+
+ </div>
+ </div>
+</div>