| 24011 |
tejbeer |
1 |
|
|
|
2 |
|
|
|
3 |
|
|
|
4 |
<style>
|
|
|
5 |
.row{
|
|
|
6 |
margin:0 auto;
|
|
|
7 |
}
|
|
|
8 |
.modal-content{
|
|
|
9 |
background : white;
|
|
|
10 |
}
|
|
|
11 |
.modelHeaderCustom{
|
|
|
12 |
font-size:14px;
|
|
|
13 |
font-weight:bold;
|
|
|
14 |
}
|
|
|
15 |
.border-highlight{
|
|
|
16 |
border : 3px solid red;
|
|
|
17 |
}
|
|
|
18 |
hr{
|
|
|
19 |
background-color:#007aff;
|
|
|
20 |
border:none;
|
|
|
21 |
height:1px;
|
|
|
22 |
background:#007aff;
|
|
|
23 |
}
|
|
|
24 |
.control-label {
|
|
|
25 |
margin-top: 0;
|
|
|
26 |
margin-bottom: 0;
|
|
|
27 |
padding-top: 7px;
|
|
|
28 |
font-weight:bold;
|
|
|
29 |
font-size:14px;
|
|
|
30 |
}
|
|
|
31 |
.form-group{
|
|
|
32 |
border-bottom: 1px solid #eff2f7;
|
|
|
33 |
padding-bottom: 15px;
|
|
|
34 |
margin-bottom: 15px;
|
|
|
35 |
}
|
|
|
36 |
.right{
|
|
|
37 |
float:right;
|
|
|
38 |
}
|
|
|
39 |
.form-control{
|
|
|
40 |
color:black;
|
|
|
41 |
|
|
|
42 |
}
|
|
|
43 |
.table-align-center{
|
|
|
44 |
text-align:center;
|
|
|
45 |
}
|
|
|
46 |
|
|
|
47 |
</style>
|
|
|
48 |
|
|
|
49 |
<script>
|
|
|
50 |
|
|
|
51 |
$(document).ready(function() {
|
|
|
52 |
$('#fofo-users').multiselect({
|
|
|
53 |
includeSelectAllOption: true,
|
|
|
54 |
multiple:true,
|
|
|
55 |
maxHeight: 200,
|
|
|
56 |
buttonWidth: '180px',
|
|
|
57 |
numberDisplayed: 1,
|
|
|
58 |
nonSelectedText: 'Users',
|
|
|
59 |
nSelectedText: ' - Users Selected',
|
|
|
60 |
allSelectedText: 'All Users Selected',
|
|
|
61 |
enableFiltering: true,
|
|
|
62 |
enableCaseInsensitiveFiltering : true
|
|
|
63 |
});
|
| 25383 |
tejbeer |
64 |
|
| 29201 |
manish |
65 |
$('#state-users').multiselect({
|
|
|
66 |
includeSelectAllOption: true,
|
|
|
67 |
multiple:true,
|
|
|
68 |
maxHeight: 200,
|
|
|
69 |
buttonWidth: '180px',
|
|
|
70 |
numberDisplayed: 1,
|
|
|
71 |
nonSelectedText: 'Users',
|
|
|
72 |
nSelectedText: ' - Users Selected',
|
|
|
73 |
allSelectedText: 'All Users Selected',
|
|
|
74 |
enableFiltering: true,
|
|
|
75 |
enableCaseInsensitiveFiltering : true
|
|
|
76 |
});
|
| 25383 |
tejbeer |
77 |
|
|
|
78 |
$('#internal-users').multiselect({
|
|
|
79 |
includeSelectAllOption: true,
|
|
|
80 |
multiple:true,
|
|
|
81 |
maxHeight: 200,
|
|
|
82 |
buttonWidth: '180px',
|
|
|
83 |
numberDisplayed: 1,
|
|
|
84 |
nonSelectedText: 'Users',
|
|
|
85 |
nSelectedText: ' - Users Selected',
|
|
|
86 |
allSelectedText: 'All Users Selected',
|
|
|
87 |
enableFiltering: true,
|
|
|
88 |
enableCaseInsensitiveFiltering : true
|
|
|
89 |
});
|
| 24011 |
tejbeer |
90 |
});
|
| 25383 |
tejbeer |
91 |
|
| 24011 |
tejbeer |
92 |
|
|
|
93 |
$(function() {
|
|
|
94 |
$('input[name="dateTime"]').daterangepicker(getSingleDatePicker(),dateRangeCallback);
|
|
|
95 |
});
|
|
|
96 |
|
|
|
97 |
</script>
|
|
|
98 |
|
|
|
99 |
<section class="wrapper">
|
|
|
100 |
<div class="row">
|
|
|
101 |
<div class="col-lg-12">
|
|
|
102 |
<h3 class="page-header"><i class="icon_document_alt"></i>RETAILER</h3>
|
|
|
103 |
<ol class="breadcrumb">
|
|
|
104 |
<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
|
|
|
105 |
<li><i class="icon_document_alt"></i>SEND NOTIFICATION</li>
|
|
|
106 |
</ol>
|
|
|
107 |
</div>
|
|
|
108 |
</div>
|
|
|
109 |
|
|
|
110 |
<div class = "row" style="background:white;background-color:white;padding:10px;">
|
|
|
111 |
<h4 class="modelHeaderCustom" style="font-size:22px;padding-bottom:2%">Enter Message</h4>
|
|
|
112 |
<form id="create-recharge-form">
|
|
|
113 |
<div class="col-lg-4">
|
|
|
114 |
|
|
|
115 |
<div class="row">
|
|
|
116 |
<div class="col-lg-5 form-group">
|
| 25383 |
tejbeer |
117 |
<p class="bold-details">Partner Name</p>
|
| 24011 |
tejbeer |
118 |
</div>
|
| 29201 |
manish |
119 |
<div class="col-lg-6 form-group">
|
|
|
120 |
<select class="form-control input-sm" id = "fofo-users" name = "fofo-users" placeholder="Partners" multiple="multiple">
|
| 25383 |
tejbeer |
121 |
<option value="" disabled selected>Partners</option>
|
| 24011 |
tejbeer |
122 |
#foreach($fofoId in $customRetailersMap.keySet())
|
|
|
123 |
<option value="$fofoId">$customRetailersMap.get($fofoId).getBusinessName()</option>
|
|
|
124 |
#end
|
|
|
125 |
</select>
|
| 29201 |
manish |
126 |
</div>
|
| 24011 |
tejbeer |
127 |
</div>
|
| 25383 |
tejbeer |
128 |
|
| 29201 |
manish |
129 |
<div class="row">
|
|
|
130 |
<div class="col-lg-5 form-group">
|
|
|
131 |
<p class="bold-details">State Name</p>
|
|
|
132 |
</div>
|
|
|
133 |
<div class="col-lg-6 form-group">
|
|
|
134 |
<select class="form-control input-sm" id = "state-users" name = "state-users" placeholder="State" multiple="multiple">
|
|
|
135 |
<option value="" disabled selected>State</option>
|
|
|
136 |
#foreach($warehouseMap in $warehouseMap.entrySet())
|
|
|
137 |
<option value="$warehouseMap.getKey()">$warehouseMap.getValue()</option>
|
|
|
138 |
#end
|
|
|
139 |
</select>
|
|
|
140 |
</div>
|
|
|
141 |
</div>
|
|
|
142 |
|
| 25383 |
tejbeer |
143 |
<div class="row">
|
|
|
144 |
<div class="col-lg-5 form-group">
|
|
|
145 |
<p class="bold-details">Internal User</p>
|
|
|
146 |
</div>
|
|
|
147 |
<div class="col-lg-6 form-group">
|
|
|
148 |
<select class="form-control input-sm" id = "internal-users" name = "internal-users" placeholder="Users" multiple="multiple">
|
|
|
149 |
<option value="" disabled selected>Users</option>
|
|
|
150 |
#foreach($userId in $userMap.keySet())
|
|
|
151 |
<option value="$userId">$userMap.get($userId).getEmailId()</option>
|
|
|
152 |
#end
|
|
|
153 |
</select>
|
|
|
154 |
</div>
|
|
|
155 |
</div>
|
|
|
156 |
|
| 24011 |
tejbeer |
157 |
<div class="row">
|
|
|
158 |
<div class="col-lg-5 form-group">
|
|
|
159 |
<p class="bold-details">Campaign Name</p>
|
|
|
160 |
</div>
|
|
|
161 |
<div class="col-lg-6 form-group">
|
|
|
162 |
<input placeholder="Campaign Name" id="campaignName" name="campaignName" type="text" value="" class="form-control input-sm">
|
|
|
163 |
</div>
|
|
|
164 |
</div>
|
| 25383 |
tejbeer |
165 |
|
|
|
166 |
<div class="row">
|
| 24011 |
tejbeer |
167 |
<div class="col-lg-5 form-group">
|
|
|
168 |
<p class="bold-details">Title</p>
|
|
|
169 |
</div>
|
|
|
170 |
<div class="col-lg-6 form-group">
|
|
|
171 |
<input placeholder="Title" id="title" name="title" type="text" value="" class="form-control input-sm">
|
|
|
172 |
</div>
|
|
|
173 |
</div>
|
|
|
174 |
|
| 25374 |
tejbeer |
175 |
|
| 24011 |
tejbeer |
176 |
<div class="row">
|
|
|
177 |
<div class="col-lg-5 form-group">
|
| 25374 |
tejbeer |
178 |
<p class="bold-details">Message</p>
|
| 24011 |
tejbeer |
179 |
</div>
|
|
|
180 |
<div class="col-lg-6 form-group">
|
| 25374 |
tejbeer |
181 |
<textarea rows="3" cols="90" placeholder="Message" id="message" name="message" type="text" value="" class="form-control input-sm"></textarea>
|
| 24011 |
tejbeer |
182 |
</div>
|
|
|
183 |
</div>
|
| 25374 |
tejbeer |
184 |
|
| 25759 |
tejbeer |
185 |
|
|
|
186 |
</div>
|
|
|
187 |
|
|
|
188 |
<div class="col-lg-4">
|
|
|
189 |
|
| 24011 |
tejbeer |
190 |
<div class="row">
|
|
|
191 |
<div class="col-lg-5 form-group">
|
|
|
192 |
<p class="bold-details">Type</p>
|
|
|
193 |
</div>
|
|
|
194 |
<div class="col-lg-6 form-group">
|
|
|
195 |
<select id="type" name="type" class="form-control input-sm">
|
|
|
196 |
<option value="url">Url</option>
|
|
|
197 |
<option value="native">Native</option>
|
|
|
198 |
<option value="update">Update</option>
|
|
|
199 |
</select>
|
|
|
200 |
</div>
|
|
|
201 |
</div>
|
|
|
202 |
|
| 25383 |
tejbeer |
203 |
<div class="row">
|
| 24011 |
tejbeer |
204 |
<div class="col-lg-5 form-group">
|
|
|
205 |
<p class="bold-details">Url</p>
|
|
|
206 |
</div>
|
| 25759 |
tejbeer |
207 |
|
|
|
208 |
|
|
|
209 |
|
|
|
210 |
|
| 24011 |
tejbeer |
211 |
<div class="col-lg-6 form-group">
|
| 25759 |
tejbeer |
212 |
|
|
|
213 |
<select class='form-control input-sm' id='selectedUrl' onchange="changeUrl()" >
|
|
|
214 |
<option selected disabled>Url</option>
|
| 26482 |
tejbeer |
215 |
<option value='https://app.smartdukaan.com/pages/home/dashboard'>http://app.smartdukaan.com/pages/home/dashboard</option>
|
|
|
216 |
<option value='https://app.smartdukaan.com/pages/home/notifications'>http://app.smartdukaan.com/pages/home/notifications</option>
|
|
|
217 |
<option value='https://app.smartdukaan.com/pages/home/services'>http://app.smartdukaan.com/pages/home/services</option>
|
|
|
218 |
<option value='https://app.smartdukaan.com/pages/home/recharge'>http://app.smartdukaan.com/pages/home/recharge</option>
|
|
|
219 |
<option value='https://app.smartdukaan.com/pages/home/damageProtectioninfo'>http://app.smartdukaan.com/pages/home/damageProtectioninfo</option>
|
| 25759 |
tejbeer |
220 |
<option value='other'>other</option>
|
|
|
221 |
</select>
|
|
|
222 |
<br>
|
| 24011 |
tejbeer |
223 |
<input placeholder="Url" id="url" name="url" type="text" value="" class="form-control input-sm">
|
|
|
224 |
</div>
|
| 25383 |
tejbeer |
225 |
</div>
|
| 25374 |
tejbeer |
226 |
|
| 25759 |
tejbeer |
227 |
|
|
|
228 |
<div class="row">
|
| 25651 |
tejbeer |
229 |
<div class="col-lg-5 form-group">
|
|
|
230 |
<p class="bold-details">DOCUMENT</p>
|
|
|
231 |
</div>
|
|
|
232 |
<div class="col-lg-6 form-group">
|
|
|
233 |
<label class="btn btn-file">
|
|
|
234 |
|
|
|
235 |
Browse<input type="file" id="notifyDocument" name="notifyDocument" style="display:none">
|
|
|
236 |
|
|
|
237 |
</label>
|
|
|
238 |
</div>
|
| 25759 |
tejbeer |
239 |
</div>
|
| 25383 |
tejbeer |
240 |
|
| 25759 |
tejbeer |
241 |
<div class="row">
|
| 24011 |
tejbeer |
242 |
<div class="col-lg-5 form-group">
|
| 25374 |
tejbeer |
243 |
<p class="bold-details">Image Url</p>
|
| 24011 |
tejbeer |
244 |
</div>
|
|
|
245 |
<div class="col-lg-6 form-group">
|
| 25374 |
tejbeer |
246 |
<input placeholder="Image Url" id="imageUrl" name="imageUrl" type="text" value="" class="form-control input-sm">
|
| 24011 |
tejbeer |
247 |
</div>
|
|
|
248 |
</div>
|
|
|
249 |
|
|
|
250 |
<div class="row">
|
|
|
251 |
<div class="col-lg-5 form-group">
|
| 25374 |
tejbeer |
252 |
<input style="zoom:1.3;" type="checkbox" name="showImage" id = "showImage" value="false">
|
|
|
253 |
<span style="font-size:14px;" class="bold-details">Show Image</span>
|
| 24011 |
tejbeer |
254 |
</div>
|
|
|
255 |
</div>
|
| 25759 |
tejbeer |
256 |
</div>
|
|
|
257 |
|
|
|
258 |
|
|
|
259 |
<div class="col-lg-4">
|
| 25374 |
tejbeer |
260 |
|
|
|
261 |
<div class="row">
|
| 24011 |
tejbeer |
262 |
<div class="col-lg-5 form-group">
|
| 25374 |
tejbeer |
263 |
<p class="bold-details">Expiresat</p>
|
| 24011 |
tejbeer |
264 |
</div>
|
|
|
265 |
<div class="col-lg-6 form-group">
|
| 25374 |
tejbeer |
266 |
<input id="expireSat" name="dateTime" type="text" value="" class="form-control input-sm">
|
| 24011 |
tejbeer |
267 |
</div>
|
| 25649 |
tejbeer |
268 |
|
|
|
269 |
<div class="col-lg-5 form-group">
|
| 25683 |
tejbeer |
270 |
<p class="bold-details">Message Type</p>
|
| 25649 |
tejbeer |
271 |
</div>
|
|
|
272 |
<div class="col-lg-6 form-group">
|
| 25683 |
tejbeer |
273 |
<select id="messageType" name="messageType" class="form-control input-sm">
|
|
|
274 |
<option selected disabled>Message Type</option>
|
|
|
275 |
<option value="notification">Notification</option>
|
|
|
276 |
<option value="announcement">Announcement</option>
|
|
|
277 |
<option value="scheme">Scheme</option>
|
|
|
278 |
<option value="marketing">Marketing</option>
|
| 25649 |
tejbeer |
279 |
</select>
|
|
|
280 |
</div>
|
| 24011 |
tejbeer |
281 |
</div>
|
| 25374 |
tejbeer |
282 |
|
| 24011 |
tejbeer |
283 |
|
|
|
284 |
<div class="row">
|
|
|
285 |
|
| 24220 |
amit.gupta |
286 |
<input class="btn btn-primary create-notification-button" type="button" value="Send Notification">
|
| 24011 |
tejbeer |
287 |
</div>
|
|
|
288 |
|
|
|
289 |
</div>
|
|
|
290 |
</form>
|
|
|
291 |
</div>
|
|
|
292 |
</section>
|
|
|
293 |
|