2 ================================================================================
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
11 http://www.apache.org/licenses/LICENSE-2.0
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 ================================================================================
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
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>
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
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
50 <div id="approles-checkbox" ng-show="!checkBoxObj.isAnyRoleSelected&&(isForAllRoles=='N')&&(!isEditMode)">
52 <div id="approles-checkbox-required" ng-show="!checkBoxObj.isAnyRoleSelected" >
55 <small class="checkbox-categories">At least
56 one category is required</small>
64 <div id="Service_Creation"></div>
68 id="jq-tree-div" jq-tree-user-notif ></div>
72 <script type="text/ng-template" id="jq-tree-tmpl-user-notif.html">
73 <div id="jqTreeUserNotif" class="tree"></div>
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">
89 <div id="app-conatiner-right" class="right-container">
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)
98 <input class="notif-input-calendar" id="datepicker-start" type="text"
99 ng-model="startTime" b2b-datepicker min="minDate" max="maxDate"
101 <div id="user-startdate-required" ng-show="!startTime">
102 <small class="mandatory-categories">Start Date is Required</small>
105 <div ng-show="!isEditMode" ng-init="formatStartDate()"></div>
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)
113 <input class="notif-input-calendar" type="text" id="datepicker-end"
114 ng-model="endTime" b2b-datepicker min="minDate" max="maxDate"
116 <div id="user-enddate-required" ng-show="!endTime" >
117 <small class="mandatory-categories">End Date is Required</small>
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>
122 <div ng-show="!isEditMode" ng-init="formatEndDate()" ></div>
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
131 <textarea id="add-notification-input-title" class="notif-input" ng-model="msgHeader" name="content" style="height: 50px;">
133 <div id="user-title-required" ng-show="msgHeader.length == 0">
134 <small class="mandatory-categories">Title is Required</small>
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
144 <textarea id="user-notif-input-message" class="notif-input" style="height: 150px"
145 ng-model="msgDescription" name="content">
147 <div id="user-notif-message-required" ng-show="msgDescription.length ==0 ">
148 <small class="mandatory-categories">Message is Required</small>
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>
164 $(document).ready(function(){
165 $(".ngdialog-close").attr('id','dialog-close');