7b0c037d5e79f5898e37943f9cfca1cb061a5c7a
[portal.git] / ecomp-portal-FE-common / client / app / views / notification-history / notificationhistory.tpl.html
1 <!--
2   ============LICENSE_START==========================================
3   ONAP Portal
4   ===================================================================
5   Copyright © 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-history"
39         ng-style="{bottom: tabBottom}">
40         <div class="user-notification-history" id="page-content">
41                 <div id='app-title' class="w-ecomp-main-view-title">
42                         <h1 class="heading-page" >Recent Notifications</h1>
43                 </div>
44                 <div class="notifHistTable">
45
46                         <div class="table-control">
47                                 <div class="simulateCatGridHeaderDetails">This table shows
48                                         notifications published in the last 30 days.</div>
49                                 <div align="right">
50                                         <input class="table-search" type="text" id="input-search"
51                                                 placeholder="Search in entire table" ng-model="searchString" />
52                                 </div>
53                         </div>
54
55             <span class="ecomp-spinner" ng-show="isLoadingTable"></span>
56
57                         <div id="table-main" class="b2b-table-div" ng-hide="isLoadingTable">
58                                 <table b2b-table id="notification-history-table"
59                                         table-data="notificationHistory"
60                                         search-string="searchString"
61                                         view-per-page="viewPerPagerIgnored"
62                                         current-page="ignoredCurrentPage"
63                                         total-page="totalPageIgnored">
64                                         <thead b2b-table-row type="header">
65                                                 <tr>
66                                                         <th id="th-notif-0" b2b-table-header key="msgSource"
67                                                                 sortable="true" class="table-th-txt">Message Source</th>
68                                                         <th id="th-notif-1" b2b-table-header key="msgHeader"
69                                                                 sortable="true">Message</th>
70                                                         <th id="th-notif-2" b2b-table-header key="startTime"
71                                                                 sortable="true">Start Date (Local Time)</th>
72                                                         <th id="th-notif-3" b2b-table-header key="endTime"
73                                                                 sortable="true">End Date  (Local Time)</th>
74                                                         <th id="th-notif-4" b2b-table-header key="priority"
75                                                                 sortable="true">Priority</th>
76                                                         <th id="th-notif-5" b2b-table-header key="loginId"
77                                                                 sortable="true">Created By</th>
78                                                         <th id="th-notif-6" b2b-table-header key="createdDate"
79                                                                 sortable="true">Created Time</th>
80                                                 </tr>
81                                         </thead>
82
83                                         <tbody b2b-table-row 
84                                                 type="body"
85                                                 class="table-body"
86                                                 track-by="$index"
87                                                 row-repeat="rowData in notificationHistory">
88                                                 <tr id="row-{{$index}}">
89                                                                 <td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">
90                                                                 <div id="{{$index}}-msgSource">{{rowData.msgSource}}</div>
91                                                         </td>
92                                                                 <td class="td-first" b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}"  ng-click="rowData.msgSource=='EP'||showDetailedJsonMessage(rowData)">
93                                                                 <div id="{{$index}}-title" class="table-td-txt" ng-bind="rowData.msgHeader"></div>
94                                                                 <div id="{{$index}}-message" ng-if="rowData.msgSource==='EP'"  class="table-td-msg" ng-bind="rowData.msgDescription"></div>
95                                                                 <div id="{{$index}}-message" ng-if="rowData.msgSource!=='EP'"  ng-bind="rowData.msgDescription| elipsis: 27"></div>
96                                                         </td>
97                                                         <td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">
98                                                                 <div id="{{$index}}-startTime" ng-bind="rowData.startTime |     date:'medium'"></div>
99                                                         </td>
100                                                         <td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">
101                                                                 <div id="{{$index}}-endTime" ng-bind="rowData.endTime | date:'medium'"></div>
102                                                         </td>
103                                                         <td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">
104                                                                 <div id="{{$index}}-priority" ng-bind="priorityItems[rowData.priority]"></div>
105                                                         </td>
106                                                         <td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">
107                                                                 <div id="{{$index}}-loginId" ng-bind="!rowData.loginId ? externalNotification : rowData.loginId"></div>
108                                                         </td>
109                                                         <td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">
110                                                                 <div id="{{$index}}-createdDate" ng-bind="rowData.createdDate | date:'medium'"></div>
111                                                         </td>
112                                                 </tr>
113                                         </tbody>
114                                 </table>
115                         </div>
116                 </div>
117         </div>
118 </div>