[PORTAL-7] Rebase
[portal.git] / ecomp-portal-FE-common / client / app / views / user-notifications-admin / user.notifications.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-admin"\r
21         ng-style="{bottom: tabBottom}">\r
22          <div class="w-ecomp-main-container" >\r
23         <div class="user-notification" id="page-content">\r
24                 <div id="title" class="w-ecomp-main-view-title">\r
25                         <h1 class="heading-page" >User Notifications</h1>\r
26                 </div>\r
27                 <div class="userNotifTable">\r
28                 \r
29                    <div class="table-control-fields">\r
30                    <input class="input-table-search" type="text" id="table-search-field"\r
31                                                 placeholder="Search in entire table" ng-model="searchString" />\r
32                                         </div>\r
33                           <div class="table-control-buttons" ng-controller="userNotificationsCtrl">\r
34                                                 <button class="btn btn-alt btn-small"id="button-openAddNewApp"   ng-click="openUserNotificationModal()" >\r
35                                         <i class="icon-people-userbookmark" aria-hidden="true"></i>&nbsp;Add Notification\r
36                                 </button> \r
37                                         </div>\r
38                 \r
39                         <span class="ecomp-spinner" ng-show="isLoadingTable"></span>\r
40                         <div class="b2b-table-div"\r
41                                 ng-hide="isLoadingTable" id="table-main">\r
42                                 <table b2b-table id="table-main" table-data="adminNotifications" search-string="searchString"\r
43                                         current-page="ignoredCurrentPage">\r
44                                         <thead b2b-table-row type="header">\r
45                                                 <tr>\r
46                                                         <th id="th-notif-0" b2b-table-header key="msgSource"\r
47                                                                 sortable="true" style=" width: 10px;">Message Source</th>\r
48                                                         <th id="th-notif-1" b2b-table-header key="msgHeader"\r
49                                                                 sortable="true" style=" width: 10px;">Message</th>\r
50                                                         <th id="th-notif-2"  b2b-table-header key="startTime"\r
51                                                                 sortable="true">Start Date (Local Time)</th>\r
52                                                         <th id="th-notif-3" b2b-table-header key="endTime"\r
53                                                                 sortable="true">End Date  (Local Time)</th>\r
54                                                         <th id="th-notif-4" b2b-table-header key="priority"\r
55                                                                 sortable="true">Priority</th>\r
56                                                         <th id="th-notif-5" b2b-table-header key="loginId"\r
57                                                                 sortable="true">Created By</th>\r
58                                                         <th id="th-notif-6" b2b-table-header key="createdDate"\r
59                                                                 sortable="true">Created Time</th>\r
60                                                         <th id="th-notif-7" b2b-table-header key="isForAllRoles"\r
61                                                                 sortable="true">All Users (Roles)?</th>\r
62                                                         <th id="th-notif-8" b2b-table-header key="edit" sortable="false">View/Delete</th>\r
63                                                 </tr>\r
64                                         </thead>\r
65                                         <tbody b2b-table-row type="body" class="table-body"\r
66                                                 row-repeat="rowData in tableAdminNotifItems">\r
67                                                 <tr>\r
68                                                         <td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">\r
69                                                                 <div  id="{{$index}}-msgSource">{{rowData.msgSource}}</div>\r
70                                                         </td>\r
71                                                         <td b2b-table-body style="{{rowData.expired?' color:lightgray !important':''}}">\r
72                                                                 <div id="{{$index}}-msgHeader" style="font-weight: bold;">{{rowData.msgHeader}}</div>\r
73                                                                 <div id="{{$index}}-message" ng-if="rowData.msgSource==='EP'" style="width:500px"  ng-bind="rowData.msgDescription"></div>\r
74                                                                 <div id="{{$index}}-message" ng-if="rowData.msgSource!=='EP'"  ng-bind="rowData.msgDescription| elipsis: 27"></div>\r
75                                                         </td>\r
76                                                         <td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">\r
77                                                                 <div id="{{$index}}-startTime">{{rowData.startTime |\r
78                                                                         date:'medium'}}</div>\r
79                                                         </td >\r
80                                                         <td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">\r
81                                                                 <div id="{{$index}}-endTime">{{rowData.endTime |\r
82                                                                         date:'medium'}}</div>\r
83                                                         </td>\r
84                                                         <td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">\r
85                                                                 <div id="{{$index}}-priority">{{priorityItems[rowData.priority]}}</div>\r
86                                                         </td>\r
87                                                         <td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">\r
88                                                                 <div id="{{$index}}-loginId">{{!rowData.loginId ?externalNotification: rowData.loginId}}</div>\r
89                                                         </td>\r
90                                                         <td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">\r
91                                                                 <div id="{{$index}}-createdDate">{{rowData.createdDate |\r
92                                                                         date:'medium'}}</div>\r
93                                                         </td>\r
94                                                         <td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">\r
95                                                                 <div id="{{$index}}-isForAllRoles">{{rowData.isForAllRoles}}</div>\r
96                                                         </td>\r
97                                                         <td b2b-table-body style="{{rowData.expired?' color:lightgray !important':''}}">\r
98                                                         \r
99                                                         <p id="{{$index}}-notification-edit" ng-if="rowData.msgSource==='EP'" ng-click="editUserNotificationModal(rowData)"class="icon-overview"  >  /</p> \r
100                                                         <p id="{{$index}}-notification-edit" ng-if="rowData.msgSource!=='EP'" ng-click="showDetailedJsonMessage(rowData)"class="icon-overview"  >/ </p> \r
101                                                         <p id="{{$index}}-notification-delete" ng-click="removeUserNotification(rowData)" class="icon-misc-trash"></p> \r
102                                                         \r
103                                                 \r
104                                                         </td>\r
105                                                 </tr>\r
106                                         </tbody>\r
107                                 </table>\r
108                                 \r
109                         </div>\r
110                                         <div b2b-pagination="" total-pages="totalPages1"\r
111                                                 current-page="currentPage1" click-handler="customPageHandler"\r
112                                                 role="navigation" aria-label="Customer Data Pages"></div>\r
113                                 \r
114                                                 \r
115                 </div>\r
116         </div>\r
117 </div>\r