[PORTAL-7] Rebase
[portal.git] / ecomp-portal-FE-common / client / app / views / user-notifications-admin / user.notifications.modal.page.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="user-notification-details-modal">\r
21         <!--<div class="functional-menu-container">-->\r
22         <div id="app-title" class="title">{{modalPgTitle}}</div>\r
23         <div class="user-notification-details-contents">\r
24                 <div class="left-container">\r
25                         <div class="add-widget-field" style="{{isEditMode? 'opacity : 0.6; pointer-events: none;':' '}} ">\r
26                                 <div class="user-notif-label">Broadcast to All Categories</div>\r
27                                 <label id="label-yes" class="simulateCatGridHeaderRadioButton"> <input\r
28                                         id="radio-button-yes" type="radio" ng-model="isForAllRoles" value="Y"> Yes\r
29                                 </label> <label id="label-no" class="simulateCatGridHeaderRadioButton"> <input\r
30                                         id="radio-button-no" type="radio" ng-model="isForAllRoles" value="N"> No\r
31                                 </label>\r
32                         </div>\r
33                         <div \r
34                                 style="padding-left: 10px; {{(! isForAllRoles ||isForAllRoles=='Y')? 'opacity : 0.6; pointer-events: none;':' '}} {{isEditMode? 'opacity : 0.6;':' '}} "\r
35                                 class="user-notif-label">\r
36                                 <div id="notifcation-label-user" class="user-notif-label">\r
37                                         <span ng-show="isForAllRoles=='N'" runat="server" ID="required" style="color: Red;">*</span>\r
38                                         Categories\r
39                                 </div>\r
40                                 <div>\r
41 \r
42                                 <div id="notifcation-label-user-div" class="user-notif-label"></div>\r
43                                 <label id="funcMenu-label-yes" > <input id="radio-button-funcMenu"\r
44                                 type="radio" ng-model="isFunctionalMenu" ng-click="getFunctionalMenu()" value="Y"> Functional Menu\r
45                                 <br/>\r
46                                 </label> <label id="approles-label-no" > <input id="radio-button-approles"\r
47                                 type="radio" ng-model="isFunctionalMenu" ng-click="getAppRoleIds()" value="N"> Application Roles\r
48                                 </label>\r
49 \r
50                                 <div id="approles-checkbox" ng-show="!checkBoxObj.isAnyRoleSelected&&(isForAllRoles=='N')&&(!isEditMode)">\r
51                                         \r
52                                         <div id="approles-checkbox-required" ng-show="!checkBoxObj.isAnyRoleSelected" >\r
53                                                 \r
54 \r
55                                                 <small class="checkbox-categories">At least\r
56                                                         one category is required</small>\r
57 \r
58                                         </div>\r
59                                 </div>\r
60                                 \r
61                                 </div>\r
62                                 \r
63                                 <div  id="tree1">\r
64                                         <div id="Service_Creation"></div>\r
65                                 </div>\r
66                                 <div \r
67                                         \r
68                                         id="jq-tree-div" jq-tree-user-notif ></div>\r
69 \r
70                                         \r
71 \r
72                                 <script type="text/ng-template" id="jq-tree-tmpl-user-notif.html">\r
73                 <div  id="jqTreeUserNotif" class="tree"></div>\r
74                 </script>\r
75                         </div>\r
76                         <div>\r
77 \r
78                                 <div id="add-user-notif-priority" class="add-widget-field" style="{{isEditMode? 'opacity : 0.6; pointer-events: none;':' '}} ">\r
79                                         <div id="user-notification-priority-label" class="user-notif-label">Priority</div>\r
80                                         <label id="label-important" class="simulateCatGridHeaderRadioButton"> <input\r
81                                                 id="radio-button-normal" type="radio" ng-model="selectedPriority" value="1"> Normal\r
82                                         </label> <label id="label-normal" class="simulateCatGridHeaderRadioButton"> <input\r
83                                                 id="radio-button-important" type="radio" ng-model="selectedPriority" value="2">\r
84                                                 Important\r
85                                         </label>\r
86                                 </div>\r
87                         </div>\r
88                 </div>\r
89                 <div id="app-conatiner-right" class="right-container">\r
90 \r
91                         <div id="add-user-notif-startdate" class="add-widget-field"\r
92                                 style="padding-bottom: 12px; width: 301px !important;{{( isEditMode )? 'opacity : 0.6; pointer-events: none;':' '}}">\r
93                                 <div id="user-notification-startdate-label" class="user-notif-label">\r
94                                         <div class="user-notif-label">\r
95                                                 <span runat="server" ID="required" style="color: Red;">*</span>\r
96                                                 Start Date (Local Time)\r
97                                         </div>\r
98                                         <input class="notif-input-calendar" id="datepicker-start" type="text" \r
99                                                 ng-model="startTime" b2b-datepicker min="minDate" max="maxDate" \r
100                                                 required />\r
101                                         <div id="user-startdate-required" ng-show="!startTime">\r
102                                                 <small class="mandatory-categories">Start Date is Required</small>\r
103                                         </div>\r
104                                 </div>\r
105                                 <div ng-show="!isEditMode" ng-init="formatStartDate()"></div> \r
106                         </div>                  \r
107 \r
108                         <div id="add-user-notif-enddate" class="add-widget-field"\r
109                                 style="padding-bottom: 12px;     width: 301px !important; {{( isEditMode )? 'opacity : 0.6; pointer-events: none;':' '}}">\r
110                                 <div id="user-notification-enddate-label" class="user-notif-label">\r
111                                         <span runat="server" ID="required" style="color: Red;">*</span> End     Date (Local Time)\r
112                                 </div>\r
113                                 <input class="notif-input-calendar" type="text" id="datepicker-end" \r
114                                         ng-model="endTime" b2b-datepicker min="minDate" max="maxDate" \r
115                                         required />\r
116                                 <div id="user-enddate-required" ng-show="!endTime" >\r
117                                         <small class="mandatory-categories">End Date is Required</small>\r
118                                 </div>\r
119                                 <div id="user-enddate-error" ng-show="endTime&&startTime&&startTime.getTime()>=endTime.getTime()" style="color: #cf2a2a; font-size: 10px;">\r
120                                         <small style="position: absolute;">End Date must be greater than start Date</small>\r
121                                 </div>\r
122                                 <div ng-show="!isEditMode" ng-init="formatEndDate()" ></div> \r
123                         </div>\r
124 \r
125                         <div id="add-user-notif-title" class="add-widget-field"\r
126                                 style="padding-bottom: 12px; {{( isEditMode )? 'opacity : 0.6; pointer-events: none;':' '}}">\r
127                                 <div id="user-notification-title-label" class="user-notif-label">\r
128                                         <span runat="server" ID="required" style="color: Red;"\r
129                                                 visible="false"> *</span> Title\r
130                                 </div>\r
131                                 <textarea id="add-notification-input-title" class="notif-input" ng-model="msgHeader" name="content" style="height: 50px;">\r
132                 </textarea>\r
133                                 <div id="user-title-required" ng-show="msgHeader.length == 0">\r
134                                         <small class="mandatory-categories">Title is Required</small>\r
135                                 </div>\r
136                         </div>\r
137                         \r
138                         <div id="add-user-notif-message" class="add-widget-field"\r
139                                 style="padding-bottom: 12px; {{( isEditMode )? 'opacity : 0.6; pointer-events: none;':' '}}">\r
140                                 <div id="user-notif-message-label" class="user-notif-label">\r
141                                         <span runat="server" ID="required" style="color: Red;"\r
142                                                 visible="false"> *</span> Message\r
143                                 </div>\r
144                                 <textarea id="user-notif-input-message" class="notif-input" style="height: 150px"\r
145                                         ng-model="msgDescription" name="content">\r
146                                 </textarea>\r
147                                 <div id="user-notif-message-required" ng-show="msgDescription.length ==0 ">\r
148                                 <small class="mandatory-categories">Message is Required</small>\r
149                                 </div>\r
150                         </div>\r
151 \r
152                         <div class="dialog-control">\r
153                                 <a ng-show="!isEditMode">\r
154                                 <button id="button-notification-save" class="btn btn-alt btn-small" size="small" ng-disabled="addUserNotificationValidation()"\r
155                                         ng-click="addUserNotification()">Save</button></a>                                              \r
156                                 <button id="button-notification-cancel" class="btn btn-alt btn-small" ng-click="closeThisDialog()" role="button" tabindex="0">Cancel</button>\r
157                         </div>\r
158                         \r
159                 </div>\r
160         </div>\r
161 </div>\r