summaryrefslogtreecommitdiffstats
path: root/ecomp-portal-FE-common/client/app/views/notification-history/notificationhistory.tpl.html
blob: 1ac97161eb01fe5a04dac51e6f905592f51a003d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<!--
  ============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-history"
	ng-style="{bottom: tabBottom}">
	<div class="user-notification-history" id="page-content">
		<div id='app-title' class="w-ecomp-main-view-title">
			<h1 class="heading-page" >Recent Notifications</h1>
		</div>
		<div class="notifHistTable">

			<div class="table-control">
				<div class="simulateCatGridHeaderDetails">This table shows
					notifications published in the last 30 days.</div>
				<div align="right">
					<input class="table-search" type="text" id="input-search"
						placeholder="Search in entire table" ng-model="searchString" />
				</div>
			</div>

            <span class="ecomp-spinner" ng-show="isLoadingTable"></span>

			<div id="table-main" class="b2b-table-div" ng-hide="isLoadingTable">
				<table b2b-table id="notification-history-table"
					table-data="notificationHistory"
					search-string="searchString"
					view-per-page="viewPerPagerIgnored"
					current-page="ignoredCurrentPage"
					total-page="totalPageIgnored">
					<thead b2b-table-row type="header">
						<tr>
							<th id="th-notif-0" b2b-table-header key="msgSource"
								sortable="true" class="table-th-txt">Message Source</th>
							<th id="th-notif-1" b2b-table-header key="msgHeader"
								sortable="true">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>
						</tr>
					</thead>

					<tbody b2b-table-row 
						type="body"
						class="table-body"
						track-by="$index"
						row-repeat="rowData in notificationHistory">
						<tr id="row-{{$index}}">
								<td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">
								<div id="{{$index}}-msgSource">{{rowData.msgSource}}</div>
							</td>
								<td class="td-first" b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}"  ng-click="rowData.msgSource=='EP'||showDetailedJsonMessage(rowData)">
								<div id="{{$index}}-title" class="table-td-txt" ng-bind="rowData.msgHeader"></div>
								<div id="{{$index}}-message" ng-if="rowData.msgSource==='EP'"  class="table-td-msg" 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" ng-bind="rowData.startTime |	date:'medium'"></div>
							</td>
							<td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">
								<div id="{{$index}}-endTime" ng-bind="rowData.endTime |	date:'medium'"></div>
							</td>
							<td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">
								<div id="{{$index}}-priority" ng-bind="priorityItems[rowData.priority]"></div>
							</td>
							<td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">
								<div id="{{$index}}-loginId" ng-bind="!rowData.loginId ? externalNotification : rowData.loginId"></div>
							</td>
							<td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">
								<div id="{{$index}}-createdDate" ng-bind="rowData.createdDate | date:'medium'"></div>
							</td>
						</tr>
					</tbody>
				</table>
			</div>
		</div>
	</div>
</div>