Update license in non-Java files.
[portal.git] / ecomp-portal-FE-common / client / app / views / user-notifications-admin / user.notifications.tpl.html
index 72c92c2..317ff01 100644 (file)
@@ -1,21 +1,39 @@
 <!--
-  ================================================================================
-  ECOMP Portal
-  ================================================================================
-  Copyright (C) 2017 AT&T Intellectual Property
-  ================================================================================
-  Licensed under the Apache License, Version 2.0 (the "License");
-  you may not use this file except in compliance with the License.
+  ============LICENSE_START==========================================
+  ONAP Portal
+  ===================================================================
+  Copyright © 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
-  
+              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============================================
+  ECOMP is a trademark and service mark of AT&T Intellectual Property.
   -->
 <div class="w-ecomp-user-notification-admin"
        ng-style="{bottom: tabBottom}">
                                                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="openUserNotificationModal()" >
+                                               <button class="btn btn-alt btn-small"id="button-openAddNewApp"   ng-click="userNotifications.openUserNotificationModal()" >
                                        <i class="icon-people-userbookmark" aria-hidden="true"></i>&nbsp;Add Notification
                                </button> 
                                        </div>
                
                        <span class="ecomp-spinner" ng-show="isLoadingTable"></span>
-                       <div class="b2b-table-div"
-                               ng-hide="isLoadingTable" id="table-main">
-                               <table b2b-table id="table-main" table-data="adminNotifications" search-string="searchString"
-                                       current-page="ignoredCurrentPage">
+                       <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"
@@ -63,7 +80,7 @@
                                                </tr>
                                        </thead>
                                        <tbody b2b-table-row type="body" class="table-body"
-                                               row-repeat="rowData in tableAdminNotifItems">
+                               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':''}}">
                                                        
-                                                       <p id="{{$index}}-notification-edit" ng-if="rowData.msgSource==='EP'" ng-click="editUserNotificationModal(rowData)"class="icon-overview"  >  /</p> 
-                                                       <p id="{{$index}}-notification-edit" ng-if="rowData.msgSource!=='EP'" ng-click="showDetailedJsonMessage(rowData)"class="icon-overview"  >/ </p> 
-                                                       <p id="{{$index}}-notification-delete" ng-click="removeUserNotification(rowData)" class="icon-misc-trash"></p> 
+                                                       <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>