72c92c21e1b90c18d08351c66a3f39065b5e8e3d
[portal.git] / ecomp-portal-FE-common / client / app / views / user-notifications-admin / user.notifications.tpl.html
1 <!--
2   ================================================================================
3   ECOMP Portal
4   ================================================================================
5   Copyright (C) 2017 AT&T Intellectual Property
6   ================================================================================
7   Licensed under the Apache License, Version 2.0 (the "License");
8   you may not use this file except in compliance with the License.
9   You may obtain a copy of the License at
10   
11        http://www.apache.org/licenses/LICENSE-2.0
12   
13   Unless required by applicable law or agreed to in writing, software
14   distributed under the License is distributed on an "AS IS" BASIS,
15   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16   See the License for the specific language governing permissions and
17   limitations under the License.
18   ================================================================================
19   -->
20 <div class="w-ecomp-user-notification-admin"
21         ng-style="{bottom: tabBottom}">
22          <div class="w-ecomp-main-container" >
23         <div class="user-notification" id="page-content">
24                 <div id="title" class="w-ecomp-main-view-title">
25                         <h1 class="heading-page" >User Notifications</h1>
26                 </div>
27                 <div class="userNotifTable">
28                 
29                    <div class="table-control-fields">
30                    <input class="input-table-search" type="text" id="table-search-field"
31                                                 placeholder="Search in entire table" ng-model="searchString" />
32                                         </div>
33                           <div class="table-control-buttons" ng-controller="userNotificationsCtrl">
34                                                 <button class="btn btn-alt btn-small"id="button-openAddNewApp"   ng-click="openUserNotificationModal()" >
35                                         <i class="icon-people-userbookmark" aria-hidden="true"></i>&nbsp;Add Notification
36                                 </button> 
37                                         </div>
38                 
39                         <span class="ecomp-spinner" ng-show="isLoadingTable"></span>
40                         <div class="b2b-table-div"
41                                 ng-hide="isLoadingTable" id="table-main">
42                                 <table b2b-table id="table-main" table-data="adminNotifications" search-string="searchString"
43                                         current-page="ignoredCurrentPage">
44                                         <thead b2b-table-row type="header">
45                                                 <tr>
46                                                         <th id="th-notif-0" b2b-table-header key="msgSource"
47                                                                 sortable="true" style=" width: 10px;">Message Source</th>
48                                                         <th id="th-notif-1" b2b-table-header key="msgHeader"
49                                                                 sortable="true" style=" width: 10px;">Message</th>
50                                                         <th id="th-notif-2"  b2b-table-header key="startTime"
51                                                                 sortable="true">Start Date (Local Time)</th>
52                                                         <th id="th-notif-3" b2b-table-header key="endTime"
53                                                                 sortable="true">End Date  (Local Time)</th>
54                                                         <th id="th-notif-4" b2b-table-header key="priority"
55                                                                 sortable="true">Priority</th>
56                                                         <th id="th-notif-5" b2b-table-header key="loginId"
57                                                                 sortable="true">Created By</th>
58                                                         <th id="th-notif-6" b2b-table-header key="createdDate"
59                                                                 sortable="true">Created Time</th>
60                                                         <th id="th-notif-7" b2b-table-header key="isForAllRoles"
61                                                                 sortable="true">All Users (Roles)?</th>
62                                                         <th id="th-notif-8" b2b-table-header key="edit" sortable="false">View/Delete</th>
63                                                 </tr>
64                                         </thead>
65                                         <tbody b2b-table-row type="body" class="table-body"
66                                                 row-repeat="rowData in tableAdminNotifItems">
67                                                 <tr>
68                                                         <td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">
69                                                                 <div  id="{{$index}}-msgSource">{{rowData.msgSource}}</div>
70                                                         </td>
71                                                         <td b2b-table-body style="{{rowData.expired?' color:lightgray !important':''}}">
72                                                                 <div id="{{$index}}-msgHeader" style="font-weight: bold;">{{rowData.msgHeader}}</div>
73                                                                 <div id="{{$index}}-message" ng-if="rowData.msgSource==='EP'" style="width:500px"  ng-bind="rowData.msgDescription"></div>
74                                                                 <div id="{{$index}}-message" ng-if="rowData.msgSource!=='EP'"  ng-bind="rowData.msgDescription| elipsis: 27"></div>
75                                                         </td>
76                                                         <td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">
77                                                                 <div id="{{$index}}-startTime">{{rowData.startTime |
78                                                                         date:'medium'}}</div>
79                                                         </td >
80                                                         <td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">
81                                                                 <div id="{{$index}}-endTime">{{rowData.endTime |
82                                                                         date:'medium'}}</div>
83                                                         </td>
84                                                         <td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">
85                                                                 <div id="{{$index}}-priority">{{priorityItems[rowData.priority]}}</div>
86                                                         </td>
87                                                         <td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">
88                                                                 <div id="{{$index}}-loginId">{{!rowData.loginId ?externalNotification: rowData.loginId}}</div>
89                                                         </td>
90                                                         <td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">
91                                                                 <div id="{{$index}}-createdDate">{{rowData.createdDate |
92                                                                         date:'medium'}}</div>
93                                                         </td>
94                                                         <td b2b-table-body style="{{rowData.expired?'color:lightgray !important':''}}">
95                                                                 <div id="{{$index}}-isForAllRoles">{{rowData.isForAllRoles}}</div>
96                                                         </td>
97                                                         <td b2b-table-body style="{{rowData.expired?' color:lightgray !important':''}}">
98                                                         
99                                                         <p id="{{$index}}-notification-edit" ng-if="rowData.msgSource==='EP'" ng-click="editUserNotificationModal(rowData)"class="icon-overview"  >  /</p> 
100                                                         <p id="{{$index}}-notification-edit" ng-if="rowData.msgSource!=='EP'" ng-click="showDetailedJsonMessage(rowData)"class="icon-overview"  >/ </p> 
101                                                         <p id="{{$index}}-notification-delete" ng-click="removeUserNotification(rowData)" class="icon-misc-trash"></p> 
102                                                         
103                                                 
104                                                         </td>
105                                                 </tr>
106                                         </tbody>
107                                 </table>
108                                 
109                         </div>
110                                         <div b2b-pagination="" total-pages="totalPages1"
111                                                 current-page="currentPage1" click-handler="customPageHandler"
112                                                 role="navigation" aria-label="Customer Data Pages"></div>
113                                 
114                                                 
115                 </div>
116         </div>
117 </div>