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