[PORTAL-7] Rebase
[portal.git] / ecomp-portal-FE-common / client / app / views / notification-history / notificationhistory.tpl.html
1 <!--\r
2   ================================================================================\r
3   ECOMP Portal\r
4   ================================================================================\r
5   Copyright (C) 2017 AT&T Intellectual Property\r
6   ================================================================================\r
7   Licensed under the Apache License, Version 2.0 (the "License");\r
8   you may not use this file except in compliance with the License.\r
9   You may obtain a copy of the License at\r
10   \r
11        http://www.apache.org/licenses/LICENSE-2.0\r
12   \r
13   Unless required by applicable law or agreed to in writing, software\r
14   distributed under the License is distributed on an "AS IS" BASIS,\r
15   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
16   See the License for the specific language governing permissions and\r
17   limitations under the License.\r
18   ================================================================================\r
19   -->\r
20 <div class="w-ecomp-user-notification-history"\r
21         ng-style="{bottom: tabBottom}">\r
22         <div class="user-notification-history" id="page-content">\r
23                 <div id='app-title' class="w-ecomp-main-view-title">\r
24                         <h1 class="heading-page" >Recent Notifications</h1>\r
25                 </div>\r
26                 <div class="notifHistTable">\r
27 \r
28                         <div class="table-control">\r
29                                 <div class="simulateCatGridHeaderDetails">This table shows\r
30                                         notifications published in the last 30 days.</div>\r
31                                 <div align="right">\r
32                                         <input class="table-search" type="text" id="input-search"\r
33                                                 placeholder="Search in entire table" ng-model="searchString" />\r
34                                 </div>\r
35                         </div>\r
36 \r
37             <span class="ecomp-spinner" ng-show="isLoadingTable"></span>\r
38 \r
39                         <div id="table-main" class="b2b-table-div" ng-hide="isLoadingTable">\r
40                                 <table b2b-table id="notification-history-table"\r
41                                         table-data="notificationHistory"\r
42                                         search-string="searchString"\r
43                                         view-per-page="viewPerPagerIgnored"\r
44                                         current-page="ignoredCurrentPage"\r
45                                         total-page="totalPageIgnored">\r
46                                         <thead b2b-table-row type="header">\r
47                                                 <tr>\r
48                                                         <th id="th-notif-0" b2b-table-header key="msgSource"\r
49                                                                 sortable="true" style=" width: 10px;">Message Source</th>\r
50                                                         <th id="th-notif-1" b2b-table-header key="msgHeader"\r
51                                                                 sortable="true">Message</th>\r
52                                                         <th id="th-notif-2" b2b-table-header key="startTime"\r
53                                                                 sortable="true">Start Date (Local Time)</th>\r
54                                                         <th id="th-notif-3" b2b-table-header key="endTime"\r
55                                                                 sortable="true">End Date  (Local Time)</th>\r
56                                                         <th id="th-notif-4" b2b-table-header key="priority"\r
57                                                                 sortable="true">Priority</th>\r
58                                                         <th id="th-notif-5" b2b-table-header key="loginId"\r
59                                                                 sortable="true">Created By</th>\r
60                                                         <th id="th-notif-6" b2b-table-header key="createdDate"\r
61                                                                 sortable="true">Created Time</th>\r
62                                                 </tr>\r
63                                         </thead>\r
64 \r
65                                         <tbody b2b-table-row \r
66                                                 type="body"\r
67                                                 class="table-body"\r
68                                                 track-by="$index"\r
69                                                 row-repeat="rowData in notificationHistory">\r
70                                                 <tr id="row-{{$index}}">\r
71                                                                 <td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">\r
72                                                                 <div id="{{$index}}-msgSource">{{rowData.msgSource}}</div>\r
73                                                         </td>\r
74                                                                 <td class="td-first" b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}"  ng-click="rowData.msgSource=='EP'||showDetailedJsonMessage(rowData)">\r
75                                                                 <div id="{{$index}}-title" style="font-weight: bold;" ng-bind="rowData.msgHeader"></div>\r
76                                                                 <div id="{{$index}}-message" ng-if="rowData.msgSource==='EP'"  style="width:500px" ng-bind="rowData.msgDescription"></div>\r
77                                                                 <div id="{{$index}}-message" ng-if="rowData.msgSource!=='EP'"  ng-bind="rowData.msgDescription| elipsis: 27"></div>\r
78                                                         </td>\r
79                                                         <td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">\r
80                                                                 <div id="{{$index}}-startTime" ng-bind="rowData.startTime |     date:'medium'"></div>\r
81                                                         </td>\r
82                                                         <td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">\r
83                                                                 <div id="{{$index}}-endTime" ng-bind="rowData.endTime | date:'medium'"></div>\r
84                                                         </td>\r
85                                                         <td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">\r
86                                                                 <div id="{{$index}}-priority" ng-bind="priorityItems[rowData.priority]"></div>\r
87                                                         </td>\r
88                                                         <td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">\r
89                                                                 <div id="{{$index}}-loginId" ng-bind="!rowData.loginId ? externalNotification : rowData.loginId"></div>\r
90                                                         </td>\r
91                                                         <td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">\r
92                                                                 <div id="{{$index}}-createdDate" ng-bind="rowData.createdDate | date:'medium'"></div>\r
93                                                         </td>\r
94                                                 </tr>\r
95                                         </tbody>\r
96                                 </table>\r
97                         </div>\r
98                 </div>\r
99         </div>\r
100 </div>\r