| 22982 |
ashik.ali |
1 |
<style>
|
| 33128 |
amit.gupta |
2 |
.bold-details {
|
|
|
3 |
text-transform: capitalize;
|
|
|
4 |
font-weight: 600;
|
|
|
5 |
color: #212121;
|
|
|
6 |
}
|
| 28826 |
tejbeer |
7 |
|
| 33128 |
amit.gupta |
8 |
.normal-details {
|
|
|
9 |
font-weight: 400;
|
|
|
10 |
text-transform: capitalize;
|
|
|
11 |
color: #797979;
|
|
|
12 |
}
|
| 22982 |
ashik.ali |
13 |
</style>
|
| 33128 |
amit.gupta |
14 |
|
| 22982 |
ashik.ali |
15 |
<section class="wrapper">
|
| 33128 |
amit.gupta |
16 |
<div class="row" style="background: white; font-size: 14px;">
|
|
|
17 |
<form id="update-retailer-details-form">
|
|
|
18 |
<div class="col-lg-4" style="border-left: 1px solid #f0f0f0;">
|
|
|
19 |
<h4>USER DETAILS</h4>
|
|
|
20 |
<div class="row">
|
|
|
21 |
<div class="col-lg-4 form-group">
|
|
|
22 |
<p class="bold-details">ID</p>
|
|
|
23 |
</div>
|
|
|
24 |
<div class="col-lg-6 form-group">
|
|
|
25 |
#if($user)
|
|
|
26 |
<p class="normal-details" id="userId">$user.getId()</p>
|
|
|
27 |
#else
|
|
|
28 |
<p class="normal-details" id="userId">0</p>
|
|
|
29 |
#end
|
|
|
30 |
</div>
|
|
|
31 |
</div>
|
|
|
32 |
<div class="row">
|
|
|
33 |
<div class="col-lg-4 form-group">
|
|
|
34 |
<p class="bold-details">FIRST NAME</p>
|
|
|
35 |
</div>
|
|
|
36 |
<div class="col-lg-6 form-group">
|
|
|
37 |
#if($user && $user.getFirstName()) <input placeholder="First Name"
|
|
|
38 |
id="firstName" name="firstName" type="text"
|
|
|
39 |
value="$user.getFirstName()"
|
|
|
40 |
class="form-control input-sm">
|
|
|
41 |
#else <input placeholder="First Name" id="firstName"
|
|
|
42 |
name="firstName" type="text" value=""
|
|
|
43 |
class="form-control input-sm"> #end
|
|
|
44 |
</div>
|
|
|
45 |
</div>
|
|
|
46 |
<div class="row">
|
|
|
47 |
<div class="col-lg-4 form-group">
|
|
|
48 |
<p class="bold-details">LAST NAME</p>
|
|
|
49 |
</div>
|
|
|
50 |
<div class="col-lg-6 form-group">
|
|
|
51 |
#if($user && $user.getLastName()) <input placeholder="Last Name"
|
|
|
52 |
id="lastName" name="lastName" type="text"
|
|
|
53 |
value="$user.getLastName()"
|
|
|
54 |
class="form-control input-sm">
|
|
|
55 |
#else <input placeholder="Last Name" id="lastName" name="lastName"
|
|
|
56 |
type="text" value="" class="form-control input-sm"> #end
|
|
|
57 |
</div>
|
|
|
58 |
</div>
|
|
|
59 |
<div class="row">
|
|
|
60 |
<div class="col-lg-4 form-group">
|
|
|
61 |
<p class="bold-details">EMAIL ID</p>
|
|
|
62 |
</div>
|
|
|
63 |
<div class="col-lg-7 form-group">
|
| 32667 |
raveendra. |
64 |
|
| 33128 |
amit.gupta |
65 |
#if($user && $user.getEmailId())
|
|
|
66 |
<div class="input-group"><input placeholder="Email Id"
|
|
|
67 |
id="emailId" name="emailId" type="text"
|
|
|
68 |
value="$user.getEmailId()" class="form-control input-sm">
|
|
|
69 |
<span class="input-group-btn">
|
|
|
70 |
<button class="btn btn-primary btn-sm" id="updateEmail"
|
|
|
71 |
type="button">Update!</button>
|
| 32667 |
raveendra. |
72 |
</span>
|
| 33128 |
amit.gupta |
73 |
</div>
|
|
|
74 |
#else
|
|
|
75 |
<div class="input-group"><input placeholder="Email Id" id="emailId" name="emailId"
|
|
|
76 |
type="text" value="" class="form-control input-sm"> <span
|
|
|
77 |
class="input-group-btn">
|
|
|
78 |
<button class="btn btn-primary btn-sm" id="updateEmail"
|
|
|
79 |
type="button">Update!</button>
|
| 32667 |
raveendra. |
80 |
</span></div>#end
|
| 33128 |
amit.gupta |
81 |
<input placeholder="Email Id" id="fofoID" name="fofoID"
|
|
|
82 |
type="hidden" value="$retailer.getId()" class="form-control input-sm">
|
|
|
83 |
</div>
|
| 32667 |
raveendra. |
84 |
|
| 33128 |
amit.gupta |
85 |
</div>
|
|
|
86 |
<div class="row">
|
|
|
87 |
<div class="col-lg-4 form-group">
|
|
|
88 |
<p class="bold-details">MOBILE NUMBER</p>
|
|
|
89 |
</div>
|
|
|
90 |
<div class="col-lg-6 form-group">
|
|
|
91 |
#if($user && $user.getMobileNumber()) <input
|
|
|
92 |
placeholder="Mobile Number" id="mobileNumber" name="mobileNumber"
|
|
|
93 |
type="text" value="$user.getMobileNumber()"
|
|
|
94 |
class="form-control input-sm"> #else <input
|
|
|
95 |
placeholder="Mobile Number" id="mobileNumber" name="mobileNumber"
|
|
|
96 |
type="text" value="" class="form-control input-sm"> #end
|
|
|
97 |
</div>
|
| 24162 |
tejbeer |
98 |
|
| 33128 |
amit.gupta |
99 |
</div>
|
| 28826 |
tejbeer |
100 |
|
| 33128 |
amit.gupta |
101 |
<div class="row">
|
|
|
102 |
<div class="col-lg-5 form-group">
|
|
|
103 |
<p class="bold-details">Location</p>
|
|
|
104 |
</div>
|
|
|
105 |
<div class="col-lg-4 form-group">
|
|
|
106 |
#if($locationdetail) <input placeholder="location" id="location"
|
|
|
107 |
name="location" type="checkbox" value="true" checked>
|
|
|
108 |
#else <input placeholder="location" id="location" name="location"
|
|
|
109 |
type="checkbox" value="false"> #end
|
|
|
110 |
</div>
|
|
|
111 |
</div>
|
| 28826 |
tejbeer |
112 |
|
| 33128 |
amit.gupta |
113 |
<div class="row" style="display: none" id="divLocation">
|
|
|
114 |
<div class="col-lg-4 form-group">
|
|
|
115 |
<p class="bold-details">Attendence Location</p>
|
|
|
116 |
</div>
|
|
|
117 |
<div class="col-lg-6 form-group">
|
|
|
118 |
#if($locationdetail)
|
|
|
119 |
<button class="btn btn-primary changelocation"
|
|
|
120 |
id="change-location-button" data-target="#addLocationModal"
|
|
|
121 |
data-toggle="modal" type="button">Change
|
|
|
122 |
</button>
|
|
|
123 |
#else
|
|
|
124 |
<button class="btn btn-primary addlocation"
|
|
|
125 |
id="add-location-button" data-target="#addLocationModal"
|
|
|
126 |
data-toggle="modal" type="button">Add
|
|
|
127 |
</button>
|
|
|
128 |
#end
|
|
|
129 |
</div>
|
|
|
130 |
</div>
|
| 28826 |
tejbeer |
131 |
|
| 33128 |
amit.gupta |
132 |
<div class="row">
|
|
|
133 |
#if($userRoleNames)
|
|
|
134 |
<div class="col-lg-4 form-group">
|
|
|
135 |
<p class="bold-details">ROLES</p>
|
|
|
136 |
</div>
|
|
|
137 |
<div class="col-lg-6 form-group">
|
|
|
138 |
<p class="normal-details">$userRoleNames</p>
|
|
|
139 |
</div>
|
|
|
140 |
#end
|
|
|
141 |
</div>
|
|
|
142 |
<div class="row col-lg-12 form-group">
|
|
|
143 |
<div>
|
| 35203 |
amit |
144 |
<label>Blocked Brands</label>
|
| 33128 |
amit.gupta |
145 |
</div>
|
|
|
146 |
<select data-placeholder="Choose brands" multiple="multiple"
|
|
|
147 |
class="criteria-brands chosen-select" id="blocks-brands">
|
|
|
148 |
#foreach($retailerBlockBrand in $retailerBlockBrands)
|
|
|
149 |
<option name="blockBrands" value="$retailerBlockBrand" selected>$retailerBlockBrand</option>
|
|
|
150 |
#end #foreach($brand in $brands)
|
| 28826 |
tejbeer |
151 |
|
| 33128 |
amit.gupta |
152 |
<option name="blockBrands" value="$brand">$brand</option> #end
|
|
|
153 |
</select>
|
|
|
154 |
</div>
|
| 28826 |
tejbeer |
155 |
|
| 33128 |
amit.gupta |
156 |
<div class="row">
|
|
|
157 |
<div class="col-lg-4 form-group">
|
|
|
158 |
<p class="bold-details">FOFO TYPE</p>
|
|
|
159 |
</div>
|
|
|
160 |
<div class="col-lg-6 form-group">
|
|
|
161 |
<select class="form-control input-sm" id="fofoType"
|
|
|
162 |
name="fofoType" placeholder="Fofo Type">
|
|
|
163 |
<option value="" disabled selected>Fofo Type</option>
|
|
|
164 |
#foreach($fofoType in $fofoTypes)
|
|
|
165 |
#if($fofoType == $fofoStore.getFofoType())
|
|
|
166 |
<option value="$fofoType" selected>$fofoType</option>
|
|
|
167 |
#else
|
|
|
168 |
<option value="$fofoType">$fofoType</option>
|
|
|
169 |
#end #end
|
|
|
170 |
</select>
|
|
|
171 |
</div>
|
| 28826 |
tejbeer |
172 |
|
| 33128 |
amit.gupta |
173 |
</div>
|
|
|
174 |
</div>
|
| 28826 |
tejbeer |
175 |
|
| 33128 |
amit.gupta |
176 |
<div class="col-lg-4" style="border-left: 1px solid #f0f0f0;">
|
|
|
177 |
<h4>RETAILER DETAILS</h4>
|
|
|
178 |
<h4>RETAILER</h4>
|
|
|
179 |
<div class="row">
|
|
|
180 |
<div class="col-lg-4 form-group">
|
|
|
181 |
<p class="bold-details">ID</p>
|
|
|
182 |
</div>
|
|
|
183 |
<div class="col-lg-6 form-group">
|
|
|
184 |
#if($retailer)
|
|
|
185 |
<p class="normal-details" id="retailerId">$retailer.getId()</p>
|
|
|
186 |
#else
|
|
|
187 |
<p class="normal-details" id="retailerId">0</p>
|
|
|
188 |
#end
|
|
|
189 |
</div>
|
|
|
190 |
</div>
|
| 28826 |
tejbeer |
191 |
|
| 33128 |
amit.gupta |
192 |
<div class="row">
|
|
|
193 |
<div class="col-lg-4 form-group">
|
|
|
194 |
<label class="bold-details">NAME</label>
|
|
|
195 |
</div>
|
|
|
196 |
<div class="col-lg-6 form-group">
|
|
|
197 |
#if($retailer && $retailer.getName()) <input placeholder="Name"
|
|
|
198 |
id="retailerName" name="retailerName" type="text"
|
|
|
199 |
value="$retailer.getName()"
|
|
|
200 |
class="form-control input-sm">
|
|
|
201 |
#else <input placeholder="Name" id="retailerName"
|
|
|
202 |
name="retailerName" type="text" value=""
|
|
|
203 |
class="form-control input-sm"> #end
|
|
|
204 |
</div>
|
|
|
205 |
</div>
|
|
|
206 |
<div class="row">
|
|
|
207 |
<div class="col-lg-4 form-group">
|
|
|
208 |
<p class="bold-details">NUMBER</p>
|
|
|
209 |
</div>
|
|
|
210 |
<div class="col-lg-6 form-group">
|
|
|
211 |
#if($retailer && $retailer.getNumber()) <input
|
|
|
212 |
placeholder="Number" id="retailerNumber" name="retailerNumber"
|
|
|
213 |
type="text" value="$retailer.getNumber()"
|
|
|
214 |
class="form-control input-sm"> #else <input
|
|
|
215 |
placeholder="Number" id="retailerNumber" name="retailerNumber"
|
|
|
216 |
type="text" value="" class="form-control input-sm"> #end
|
|
|
217 |
</div>
|
|
|
218 |
</div>
|
| 28826 |
tejbeer |
219 |
|
|
|
220 |
|
| 33128 |
amit.gupta |
221 |
<div class="row">
|
|
|
222 |
<div class="col-lg-4 form-group">
|
|
|
223 |
<p class="bold-details">DOCUMENT</p>
|
|
|
224 |
</div>
|
|
|
225 |
<div class="col-lg-3 form-group">
|
|
|
226 |
<label class="btn btn-file"> #set($retailerDocumentId = 0)
|
|
|
227 |
#if($retailer && $retailer.getDocumentId())
|
|
|
228 |
#set($retailerDocumentId = $retailer.getDocumentId()) #end Browse<input
|
|
|
229 |
type="file" id="retailerDocument" name="retailerDocument"
|
|
|
230 |
documentId="$retailerDocumentId" style="display: none">
|
| 28826 |
tejbeer |
231 |
|
| 33128 |
amit.gupta |
232 |
</label>
|
|
|
233 |
</div>
|
|
|
234 |
#if($retailer && $retailer.getDocumentId())
|
|
|
235 |
<div class="col-lg-2 form-group">
|
|
|
236 |
<label class="btn btn-file-download">
|
|
|
237 |
<button type="button" class="btn btn-default btn-sm"
|
|
|
238 |
onclick="downloadRetailerDocument($retailer.getDocumentId(), $retailer.getId())">
|
|
|
239 |
View
|
|
|
240 |
</button>
|
|
|
241 |
</label>
|
|
|
242 |
</div>
|
|
|
243 |
#end
|
|
|
244 |
</div>
|
| 28826 |
tejbeer |
245 |
|
|
|
246 |
|
| 33128 |
amit.gupta |
247 |
<h4>ADDRESS</h4>
|
|
|
248 |
<div class="row">
|
|
|
249 |
<div class="col-lg-4 form-group">
|
|
|
250 |
<p class="bold-details">NAME</p>
|
|
|
251 |
</div>
|
|
|
252 |
<div class="col-lg-6 form-group">
|
|
|
253 |
#if($retailerAddress && $retailerAddress.getName()) <input
|
|
|
254 |
placeholder="Name" id="retailerAddressName"
|
|
|
255 |
name="retailerAddressName" type="text"
|
|
|
256 |
value="$retailerAddress.getName()" class="form-control input-sm">
|
|
|
257 |
#else <input placeholder="Name" id="retailerAddressName"
|
|
|
258 |
name="retailerAddressName" type="text" value=""
|
|
|
259 |
class="form-control input-sm"> #end
|
|
|
260 |
</div>
|
|
|
261 |
</div>
|
|
|
262 |
<div class="row">
|
|
|
263 |
<div class="col-lg-4 form-group">
|
|
|
264 |
<p class="bold-details">LINE1</p>
|
|
|
265 |
</div>
|
|
|
266 |
<div class="col-lg-6 form-group">
|
|
|
267 |
#if($retailerAddress && $retailerAddress.getLine1()) <input
|
|
|
268 |
placeholder="Line 1" id="retailerAddressLine1"
|
|
|
269 |
name="retailerAddressLine1" type="text"
|
|
|
270 |
value="$retailerAddress.getLine1()" class="form-control input-sm">
|
|
|
271 |
#else <input placeholder="Line 1" id="retailerAddressLine1"
|
|
|
272 |
name="retailerAddressLine1" type="text" value=""
|
|
|
273 |
class="form-control input-sm"> #end
|
|
|
274 |
</div>
|
|
|
275 |
</div>
|
|
|
276 |
<div class="row">
|
|
|
277 |
<div class="col-lg-4 form-group">
|
|
|
278 |
<p class="bold-details">LINE2</p>
|
|
|
279 |
</div>
|
|
|
280 |
<div class="col-lg-6 form-group">
|
|
|
281 |
#if($retailerAddress && $retailerAddress.getLine2()) <input
|
|
|
282 |
placeholder="Line2" id="retailerAddressLine2"
|
|
|
283 |
name="retailerAddressLine2" type="text"
|
|
|
284 |
value="$retailerAddress.getLine2()" class="form-control input-sm">
|
|
|
285 |
#else <input placeholder="Line2" id="retailerAddressLine2"
|
|
|
286 |
name="retailerAddressLine2" type="text" value=""
|
|
|
287 |
class="form-control input-sm"> #end
|
|
|
288 |
</div>
|
|
|
289 |
</div>
|
| 28826 |
tejbeer |
290 |
|
| 33128 |
amit.gupta |
291 |
<div class="row">
|
|
|
292 |
<div class="col-lg-4 form-group">
|
|
|
293 |
<p class="bold-details">PIN CODE</p>
|
|
|
294 |
</div>
|
|
|
295 |
<div class="col-lg-6 form-group">
|
|
|
296 |
#if($retailerAddress && $retailerAddress.getPinCode()) <input
|
|
|
297 |
placeholder="Pin Code" id="retailerAddressPinCode"
|
|
|
298 |
name="retailerAddressPinCode" type="text"
|
|
|
299 |
value="$retailerAddress.getPinCode()"
|
|
|
300 |
class="form-control input-sm"> #else <input
|
|
|
301 |
placeholder="Pin Code" id="retailerAddressPinCode"
|
|
|
302 |
name="retailerAddressPinCode" type="text" value=""
|
|
|
303 |
class="form-control input-sm"> #end
|
|
|
304 |
</div>
|
|
|
305 |
</div>
|
| 28826 |
tejbeer |
306 |
|
| 33128 |
amit.gupta |
307 |
<div class="row">
|
|
|
308 |
<div class="col-lg-4 form-group">
|
|
|
309 |
<p class="bold-details">STATE</p>
|
|
|
310 |
</div>
|
|
|
311 |
<div class="col-lg-6 form-group">
|
|
|
312 |
#if($fofoStore) <input placeholder="retailerAddressState"
|
|
|
313 |
id="retailerAddressState" name="retailerAddressState" type="text"
|
|
|
314 |
value="$retailerAddress.getState()" class="form-control input-sm"
|
|
|
315 |
style="font-weight: bold;" disabled> #else <input
|
|
|
316 |
placeholder="retailerAddressState" id="retailerAddressState"
|
|
|
317 |
name="retailerAddressState" type="text" value=""
|
|
|
318 |
class="form-control input-sm" disabled> #end
|
|
|
319 |
</div>
|
|
|
320 |
</div>
|
| 28826 |
tejbeer |
321 |
|
| 33128 |
amit.gupta |
322 |
<div class="row">
|
|
|
323 |
<div class="col-lg-4 form-group">
|
|
|
324 |
<p class="bold-details">CITY</p>
|
|
|
325 |
</div>
|
|
|
326 |
<div class="col-lg-6 form-group">
|
|
|
327 |
<select class="form-control input-sm" id="retailerAddressCity"
|
|
|
328 |
name="retailerAddressCity" placeholder="City">
|
|
|
329 |
<option value="" disabled selected>City</option>
|
|
|
330 |
#if($retailerAddress.getCity())
|
|
|
331 |
<option value="$retailerAddress.getCity()" selected>$retailerAddress.getCity()</option>
|
|
|
332 |
#end
|
| 33124 |
ranu |
333 |
|
| 33128 |
amit.gupta |
334 |
</select>
|
|
|
335 |
</div>
|
|
|
336 |
</div>
|
| 33124 |
ranu |
337 |
|
| 33128 |
amit.gupta |
338 |
<div class="row">
|
|
|
339 |
<div class="col-lg-4 form-group">
|
|
|
340 |
<p class="bold-details">Area-Territory</p>
|
|
|
341 |
</div>
|
|
|
342 |
<div class="col-lg-6 form-group">
|
|
|
343 |
<select class="form-control input-sm" id="retailerAstId"
|
|
|
344 |
name="retailerAstId" placeholder="Area-Territory">
|
|
|
345 |
<option value="" disabled selected>Area-Territory</option>
|
|
|
346 |
#foreach($ast in $astDetail)
|
|
|
347 |
<option value="$ast.getId()"
|
|
|
348 |
#if($fofoStore.getAstId() == $ast.getId())
|
|
|
349 |
selected
|
|
|
350 |
#end>
|
|
|
351 |
$ast.getArea() ($ast.getAreaDescription()
|
|
|
352 |
- $ast.getTerritory() ($ast.getTerritoryDescription()
|
|
|
353 |
</option>
|
|
|
354 |
#end
|
| 33124 |
ranu |
355 |
|
| 33128 |
amit.gupta |
356 |
</select>
|
|
|
357 |
</div>
|
|
|
358 |
</div>
|
| 28826 |
tejbeer |
359 |
|
| 33128 |
amit.gupta |
360 |
<div class="row">
|
|
|
361 |
<div class="col-lg-4 form-group">
|
|
|
362 |
<p class="bold-details">FOFO STORE CODE</p>
|
|
|
363 |
</div>
|
|
|
364 |
<div class="col-lg-6 form-group">
|
|
|
365 |
#if($fofoStore) <input placeholder="fofostorecode"
|
| 35289 |
amit |
366 |
id="fofostorecode" name="fofostorecode" type="text"
|
| 33128 |
amit.gupta |
367 |
value="$fofoStore.getCode()" class="form-control input-sm"
|
|
|
368 |
style="font-weight: bold;" disabled> #else <input
|
| 35289 |
amit |
369 |
placeholder="fofostorecode"
|
| 33128 |
amit.gupta |
370 |
name="fofostorecode" type="text" value=""
|
|
|
371 |
class="form-control input-sm" disabled> #end
|
|
|
372 |
</div>
|
|
|
373 |
</div>
|
|
|
374 |
#if(!$fofoStore)
|
|
|
375 |
<div class="row">
|
|
|
376 |
<div id="district-name-container">
|
|
|
377 |
<div class="col-lg-4 form-group">
|
|
|
378 |
<p class="bold-details">DISTRICT NAME</p>
|
|
|
379 |
</div>
|
| 28826 |
tejbeer |
380 |
|
| 33128 |
amit.gupta |
381 |
<div class="col-lg-6 form-group">
|
|
|
382 |
<select class="form-control input-sm" id="districtName"
|
|
|
383 |
name="districtName" placeholder="District Name">
|
|
|
384 |
<option value="" disabled selected>District Name</option>
|
|
|
385 |
#foreach($districtMaster in $districtMasters)
|
|
|
386 |
<option value="$districtMaster.getName()">$districtMaster.getName()</option>
|
|
|
387 |
#end
|
|
|
388 |
</select>
|
|
|
389 |
</div>
|
|
|
390 |
</div>
|
|
|
391 |
</div>
|
|
|
392 |
#end
|
|
|
393 |
<div class="row">
|
|
|
394 |
<div class="col-lg-4 form-group">
|
|
|
395 |
<p class="bold-details">CounterSize</p>
|
|
|
396 |
</div>
|
|
|
397 |
<div class="col-lg-6 form-group">
|
|
|
398 |
<select class="form-control input-sm" id="counterSize"
|
|
|
399 |
name="counterSize" placeholder="counterSize">
|
|
|
400 |
<option value="" disabled selected>counterSize</option>
|
|
|
401 |
#foreach($counterSize in $counterSizes) #if($counterSize ==
|
|
|
402 |
$fofoStore.getCounterSize())
|
|
|
403 |
<option value="$counterSize" selected>$counterSize</option> #else
|
|
|
404 |
<option value="$counterSize">$counterSize</option> #end #end
|
|
|
405 |
</select>
|
|
|
406 |
</div>
|
|
|
407 |
</div>
|
| 28826 |
tejbeer |
408 |
|
| 33128 |
amit.gupta |
409 |
<div class="row">
|
|
|
410 |
<div class="col-lg-4 form-group">
|
|
|
411 |
<p class="bold-details">Counter Potential</p>
|
|
|
412 |
</div>
|
|
|
413 |
<div class="col-lg-6 form-group">
|
|
|
414 |
#if($fofoStore) <input placeholder="counterPotential"
|
|
|
415 |
id="counterPotential" name="counterPotential" type="text"
|
|
|
416 |
value="$fofoStore.getCounterPotential()"
|
|
|
417 |
class="form-control input-sm"> #else <input
|
|
|
418 |
placeholder="counterPotential" id="counterPotential"
|
|
|
419 |
name="counterPotential" type="text" value=""
|
|
|
420 |
class="form-control input-sm"> #end
|
|
|
421 |
</div>
|
|
|
422 |
</div>
|
| 28826 |
tejbeer |
423 |
|
| 33128 |
amit.gupta |
424 |
<div class="row">
|
|
|
425 |
<div class="col-lg-4 form-group">
|
|
|
426 |
<p class="bold-details">MinInvestment</p>
|
|
|
427 |
</div>
|
|
|
428 |
<div class="col-lg-6 form-group">
|
|
|
429 |
#if($fofoStore) <input placeholder="minInvestment"
|
|
|
430 |
id="minInvestment" name="minInvestment" type="text"
|
|
|
431 |
value="$fofoStore.getMinimumInvestment()"
|
|
|
432 |
class="form-control input-sm"> #else <input
|
|
|
433 |
placeholder="minInvestment" id="minInvestment"
|
|
|
434 |
name="minInvestment" type="text" value=""
|
|
|
435 |
class="form-control input-sm"> #end
|
|
|
436 |
</div>
|
|
|
437 |
</div>
|
|
|
438 |
<div class="row">
|
|
|
439 |
<div class="col-lg-5 form-group">
|
|
|
440 |
<p class="bold-details">FOFO PARTNER</p>
|
|
|
441 |
</div>
|
|
|
442 |
<div class="col-lg-4 form-group">
|
|
|
443 |
#if($fofoRole) <input placeholder="Fofo Partner" id="fofoPartner"
|
|
|
444 |
name="fofoPartner" type="checkbox" value="true" checked>
|
|
|
445 |
#else <input placeholder="Fofo Partner" id="fofoPartner"
|
|
|
446 |
name="fofoPartner" type="checkbox" value="false"> #end
|
|
|
447 |
</div>
|
|
|
448 |
</div>
|
| 28826 |
tejbeer |
449 |
|
| 33128 |
amit.gupta |
450 |
<div class="row">
|
|
|
451 |
<div class="col-lg-4 form-group">
|
|
|
452 |
<p class="bold-details">FOFO ZONE</p>
|
|
|
453 |
</div>
|
|
|
454 |
<div class="col-lg-6 form-group">
|
|
|
455 |
<select class="form-control input-sm" id="fofoZone"
|
|
|
456 |
name="fofoZone" placeholder="Fofo Zone">
|
|
|
457 |
<option value="" disabled selected>Fofo Zone</option>
|
|
|
458 |
#foreach($warehouse in $warehouses.entrySet())
|
|
|
459 |
#if($warehouse.getKey() == $fofoStore.getWarehouseId())
|
|
|
460 |
<option value="$warehouse.getKey()" selected>$warehouse.getValue()</option>
|
|
|
461 |
#else
|
|
|
462 |
<option value="$warehouse.getKey()">$warehouse.getValue()</option>
|
|
|
463 |
#end #end
|
|
|
464 |
</select>
|
|
|
465 |
</div>
|
| 28826 |
tejbeer |
466 |
|
| 33128 |
amit.gupta |
467 |
</div>
|
|
|
468 |
<div class="row">
|
|
|
469 |
<div class="col-lg-4 form-group">
|
|
|
470 |
<p class="bold-details">GST NUMBER</p>
|
|
|
471 |
</div>
|
|
|
472 |
<div class="col-lg-6 form-group">
|
|
|
473 |
#if($gstNumber) <input placeholder="GST Number" id="gstNumber"
|
|
|
474 |
name="gstNumber" type="text" value="$gstNumber"
|
|
|
475 |
class="form-control input-sm"> #else <input
|
|
|
476 |
placeholder="GST Number" id="gstNumber" name="gstNumber"
|
|
|
477 |
type="text" value="" class="form-control input-sm"> #end
|
|
|
478 |
</div>
|
|
|
479 |
</div>
|
|
|
480 |
<div class="row">
|
|
|
481 |
<div class="col-lg-5 form-group">
|
|
|
482 |
<p class="bold-details">ACTIVE</p>
|
|
|
483 |
</div>
|
|
|
484 |
<div class="col-lg-4 form-group">
|
|
|
485 |
#if($retailer && $retailer.isActive()) <input placeholder="Active"
|
|
|
486 |
id="active" name="active" type="checkbox"
|
|
|
487 |
value="true" checked>
|
|
|
488 |
#else <input placeholder="Active" id="active" name="active"
|
|
|
489 |
type="checkbox" value="false"> #end
|
|
|
490 |
</div>
|
|
|
491 |
</div>
|
| 28826 |
tejbeer |
492 |
|
| 33128 |
amit.gupta |
493 |
</div>
|
|
|
494 |
<div class="col-lg-4" style="border-left: 1px solid #f0f0f0;"
|
|
|
495 |
id="shops">
|
|
|
496 |
<h4>SHOP DETAILS</h4>
|
|
|
497 |
#set($a = 0) #if(!$shops || $shops.isEmpty())
|
|
|
498 |
<div id="new-shops">
|
|
|
499 |
<h4>SHOP</h4>
|
|
|
500 |
<div class="row">
|
|
|
501 |
<div class="col-lg-4 form-group">
|
|
|
502 |
<p class="bold-details">ID</p>
|
|
|
503 |
</div>
|
|
|
504 |
<div class="col-lg-6 form-group" id="0">
|
|
|
505 |
<p class="normal-details">0</p>
|
|
|
506 |
</div>
|
|
|
507 |
</div>
|
|
|
508 |
<div class="row">
|
|
|
509 |
<div class="col-lg-4 form-group">
|
|
|
510 |
<p class="bold-details">NAME</p>
|
|
|
511 |
</div>
|
|
|
512 |
<div class="col-lg-6 form-group">
|
|
|
513 |
<input placeholder="Name" id="shopName${a}" name="shopName${a}"
|
|
|
514 |
shopId="0" type="text" value="" class="form-control input-sm">
|
|
|
515 |
</div>
|
|
|
516 |
</div>
|
|
|
517 |
<div class="row">
|
|
|
518 |
<div class="col-lg-4 form-group">
|
|
|
519 |
<p class="bold-details">DOCUMENT</p>
|
|
|
520 |
</div>
|
|
|
521 |
<div class="col-lg-3 form-group">
|
|
|
522 |
<label class="btn btn-file"> Browse<input type="file"
|
|
|
523 |
shopId="0" class="retailerShopDocument"
|
|
|
524 |
id="retailerShopDocument${a}"
|
|
|
525 |
name="retailerShopDocument${a}"
|
|
|
526 |
documentId="0" style="display: none">
|
|
|
527 |
</label>
|
|
|
528 |
</div>
|
|
|
529 |
</div>
|
|
|
530 |
<h4>ADDRESS</h4>
|
|
|
531 |
<div class="row">
|
|
|
532 |
<div class="col-lg-8 form-group">
|
|
|
533 |
<p class="bold-details">SAME AS RETAILER ADDRESS</p>
|
|
|
534 |
</div>
|
|
|
535 |
<div class="col-lg-2 form-group">
|
|
|
536 |
<input placeholder="Same as Retailer Address"
|
|
|
537 |
id="sameAsRetailerAddress${a}" name="sameAsRetailerAddress${a}"
|
|
|
538 |
type="checkbox" value="false">
|
|
|
539 |
</div>
|
|
|
540 |
</div>
|
|
|
541 |
<div id="new-shops-address">
|
|
|
542 |
<div class="row">
|
|
|
543 |
<div class="col-lg-4 form-group">
|
|
|
544 |
<p class="bold-details">NAME</p>
|
|
|
545 |
</div>
|
|
|
546 |
<div class="col-lg-6 form-group">
|
|
|
547 |
<input placeholder="Name" id="shopAddressName${a}"
|
|
|
548 |
name="shopAddressName${a}" type="text" value=""
|
|
|
549 |
class="form-control input-sm">
|
|
|
550 |
</div>
|
|
|
551 |
</div>
|
|
|
552 |
<div class="row">
|
|
|
553 |
<div class="col-lg-4 form-group">
|
|
|
554 |
<p class="bold-details">LINE1</p>
|
|
|
555 |
</div>
|
|
|
556 |
<div class="col-lg-6 form-group">
|
|
|
557 |
<input placeholder="Line1" id="shopAddressLine1${a}"
|
|
|
558 |
name="shopAddressLine1${a}" type="text" value=""
|
|
|
559 |
class="form-control input-sm">
|
|
|
560 |
</div>
|
|
|
561 |
</div>
|
|
|
562 |
<div class="row">
|
|
|
563 |
<div class="col-lg-4 form-group">
|
|
|
564 |
<p class="bold-details">LINE2</p>
|
|
|
565 |
</div>
|
|
|
566 |
<div class="col-lg-6 form-group">
|
|
|
567 |
<input placeholder="Line2" id="shopAddressLine2${a}"
|
|
|
568 |
name="shopAddressLine2${a}" type="text" value=""
|
|
|
569 |
class="form-control input-sm">
|
|
|
570 |
</div>
|
|
|
571 |
</div>
|
| 28826 |
tejbeer |
572 |
|
| 33128 |
amit.gupta |
573 |
<div class="row">
|
|
|
574 |
<div class="col-lg-4 form-group">
|
|
|
575 |
<p class="bold-details">CITY</p>
|
|
|
576 |
</div>
|
|
|
577 |
<div class="col-lg-6 form-group">
|
|
|
578 |
<input placeholder="City" id="shopAddressCity${a}"
|
|
|
579 |
name="shopAddressCity${a}" type="text" value=""
|
|
|
580 |
class="form-control input-sm">
|
|
|
581 |
</div>
|
|
|
582 |
</div>
|
| 28826 |
tejbeer |
583 |
|
| 33128 |
amit.gupta |
584 |
<div class="row">
|
|
|
585 |
<div class="col-lg-4 form-group">
|
|
|
586 |
<p class="bold-details">PIN CODE</p>
|
|
|
587 |
</div>
|
|
|
588 |
<div class="col-lg-6 form-group">
|
|
|
589 |
<input placeholder="Pin Code" id="shopAddressPinCode${a}"
|
|
|
590 |
name="shopAddressPinCode${a}" type="text" value=""
|
|
|
591 |
class="form-control input-sm">
|
|
|
592 |
</div>
|
|
|
593 |
</div>
|
| 32779 |
shampa |
594 |
|
|
|
595 |
|
| 33128 |
amit.gupta |
596 |
<div class="row">
|
|
|
597 |
<div class="col-lg-4 form-group">
|
|
|
598 |
<p class="bold-details">STATE</p>
|
|
|
599 |
</div>
|
|
|
600 |
<div class="col-lg-6 form-group">
|
|
|
601 |
<select class="form-control input-sm" id="shopAddressState${a}"
|
|
|
602 |
name="shopAddressState${a}" placeholder="State">
|
|
|
603 |
<option value="" disabled selected>State</option>
|
|
|
604 |
#foreach($stateName in $stateNames)
|
|
|
605 |
<option value="$stateName">$stateName</option> #end
|
|
|
606 |
</select>
|
|
|
607 |
</div>
|
|
|
608 |
</div>
|
|
|
609 |
</div>
|
| 28826 |
tejbeer |
610 |
|
|
|
611 |
|
| 33128 |
amit.gupta |
612 |
#set($a = $a + 1)
|
|
|
613 |
</div>
|
|
|
614 |
#else
|
|
|
615 |
<div id="existing-shops">
|
|
|
616 |
#foreach($shop in $shops)
|
| 28826 |
tejbeer |
617 |
|
| 33128 |
amit.gupta |
618 |
<h4>SHOP</h4>
|
|
|
619 |
<div class="row">
|
|
|
620 |
<div class="col-lg-4 form-group">
|
|
|
621 |
<p class="bold-details">ID</p>
|
|
|
622 |
</div>
|
|
|
623 |
<div class="col-lg-6 form-group" id="$shop.getId()">
|
|
|
624 |
<p class="normal-details">$shop.getId()</p>
|
|
|
625 |
</div>
|
|
|
626 |
</div>
|
|
|
627 |
<div class="row">
|
|
|
628 |
<div class="col-lg-4 form-group">
|
|
|
629 |
<p class="bold-details">NAME</p>
|
|
|
630 |
</div>
|
|
|
631 |
<div class="col-lg-6 form-group">
|
|
|
632 |
#if($shop.getName()) <input placeholder="Name" id="shopName${a}"
|
|
|
633 |
name="shopName${a}" shopId="$shop.getId()" type="text"
|
|
|
634 |
value="$shop.getName()" class="form-control input-sm">
|
|
|
635 |
#else <input placeholder="Name" id="shopName${a}"
|
|
|
636 |
name="shopName${a}" shopId="$shop.getId()" type="text" value=""
|
|
|
637 |
class="form-control input-sm"> #end
|
|
|
638 |
</div>
|
|
|
639 |
</div>
|
| 28826 |
tejbeer |
640 |
|
| 33128 |
amit.gupta |
641 |
<div class="row">
|
|
|
642 |
<div class="col-lg-4 form-group">
|
|
|
643 |
<p class="bold-details">DOCUMENT</p>
|
|
|
644 |
</div>
|
|
|
645 |
<div class="col-lg-3 form-group">
|
|
|
646 |
<label class="btn btn-file"> #if(!$shop.getDocumentId())
|
|
|
647 |
Browse<input type="file" shopId="$shop.getId()"
|
|
|
648 |
class="retailerShopDocument" id="retailerShopDocument${a}"
|
|
|
649 |
name="retailerShopDocument${a}" documentId="0"
|
|
|
650 |
style="display: none"> #else Browse<input type="file"
|
|
|
651 |
shopId="$shop.getId()"
|
|
|
652 |
class="retailerShopDocument"
|
|
|
653 |
id="retailerShopDocument${a}"
|
|
|
654 |
name="retailerShopDocument${a}"
|
|
|
655 |
documentId="$shop.getDocumentId()"
|
|
|
656 |
style="display: none">
|
|
|
657 |
#end
|
|
|
658 |
</label>
|
|
|
659 |
</div>
|
|
|
660 |
#if($shop.getDocumentId())
|
|
|
661 |
<div class="col-lg-2 form-group">
|
|
|
662 |
<label class="btn btn-file-download">
|
|
|
663 |
<button type="button" class="btn btn-default btn-sm"
|
|
|
664 |
onclick="downloadRetailerShopDocument($shop.getId(), $shop.getRetailerId())">
|
|
|
665 |
View
|
|
|
666 |
</button>
|
|
|
667 |
</label>
|
|
|
668 |
</div>
|
|
|
669 |
#end
|
|
|
670 |
</div>
|
|
|
671 |
<h4>ADDRESS</h4>
|
|
|
672 |
<div class="row">
|
|
|
673 |
<div class="col-lg-6 form-group">
|
|
|
674 |
<p class="bold-details">Same as Retailer Address</p>
|
|
|
675 |
</div>
|
|
|
676 |
<div class="col-lg-4 form-group">
|
|
|
677 |
<input placeholder="Same as Retailer Address"
|
|
|
678 |
id="sameAsRetailerAddress${a}" name="sameAsRetailerAddress${a}"
|
|
|
679 |
type="checkbox" value="false">
|
|
|
680 |
</div>
|
|
|
681 |
</div>
|
|
|
682 |
<div class="row">
|
|
|
683 |
<div class="col-lg-4 form-group">
|
|
|
684 |
<p class="bold-details">NAME</p>
|
|
|
685 |
</div>
|
|
|
686 |
<div class="col-lg-6 form-group">
|
|
|
687 |
#if($shop.getAddress().getName()) <input placeholder="Name"
|
|
|
688 |
id="shopAddressName${a}"
|
|
|
689 |
name="shopAddressName${a}" type="text"
|
|
|
690 |
value="$shop.getAddress().getName()"
|
|
|
691 |
class="form-control input-sm"> #else <input
|
|
|
692 |
placeholder="Name" id="shopAddressName${a}"
|
|
|
693 |
name="shopAddressName${a}" type="text" value=""
|
|
|
694 |
class="form-control input-sm"> #end
|
|
|
695 |
</div>
|
|
|
696 |
</div>
|
|
|
697 |
<div class="row">
|
|
|
698 |
<div class="col-lg-4 form-group">
|
|
|
699 |
<p class="bold-details">LINE1</p>
|
|
|
700 |
</div>
|
|
|
701 |
<div class="col-lg-6 form-group">
|
|
|
702 |
#if($shop.getAddress().getLine1()) <input placeholder="Line1"
|
|
|
703 |
id="shopAddressLine1${a}"
|
|
|
704 |
name="shopAddressLine1${a}"
|
|
|
705 |
type="text"
|
|
|
706 |
value="$shop.getAddress().getLine1()"
|
|
|
707 |
class="form-control input-sm"> #else <input
|
|
|
708 |
placeholder="Line1" id="shopAddressLine1${a}"
|
|
|
709 |
name="shopAddressLine1${a}" type="text" value=""
|
|
|
710 |
class="form-control input-sm"> #end
|
|
|
711 |
</div>
|
|
|
712 |
</div>
|
|
|
713 |
<div class="row">
|
|
|
714 |
<div class="col-lg-4 form-group">
|
|
|
715 |
<p class="bold-details">LINE2</p>
|
|
|
716 |
</div>
|
|
|
717 |
<div class="col-lg-6 form-group">
|
|
|
718 |
#if($shop.getAddress().getLine2()) <input placeholder="Line2"
|
|
|
719 |
id="shopAddressLine2${a}"
|
|
|
720 |
name="shopAddressLine2${a}"
|
|
|
721 |
type="text"
|
|
|
722 |
value="$shop.getAddress().getLine2()"
|
|
|
723 |
class="form-control input-sm"> #else <input
|
|
|
724 |
placeholder="Line2" id="shopAddressLine2${a}"
|
|
|
725 |
name="shopAddressLine2${a}" type="text" value=""
|
|
|
726 |
class="form-control input-sm"> #end
|
|
|
727 |
</div>
|
|
|
728 |
</div>
|
| 28826 |
tejbeer |
729 |
|
| 33128 |
amit.gupta |
730 |
<div class="row">
|
|
|
731 |
<div class="col-lg-4 form-group">
|
|
|
732 |
<p class="bold-details">CITY</p>
|
|
|
733 |
</div>
|
|
|
734 |
<div class="col-lg-6 form-group">
|
|
|
735 |
#if($shop.getAddress().getCity()) <input placeholder="City"
|
|
|
736 |
id="shopAddressCity${a}"
|
|
|
737 |
name="shopAddressCity${a}" type="text"
|
|
|
738 |
value="$shop.getAddress().getCity()"
|
|
|
739 |
class="form-control input-sm"> #else <input
|
|
|
740 |
placeholder="City" id="shopAddressCity${a}"
|
|
|
741 |
name="shopAddressCity${a}" type="text" value=""
|
|
|
742 |
class="form-control input-sm"> #end
|
|
|
743 |
</div>
|
|
|
744 |
</div>
|
| 28826 |
tejbeer |
745 |
|
| 33128 |
amit.gupta |
746 |
<div class="row">
|
|
|
747 |
<div class="col-lg-4 form-group">
|
|
|
748 |
<p class="bold-details">PIN CODE</p>
|
|
|
749 |
</div>
|
|
|
750 |
<div class="col-lg-6 form-group">
|
|
|
751 |
#if($shop.getAddress().getPinCode()) <input
|
|
|
752 |
placeholder="Pin Code" id="shopAddressPinCode${a}"
|
|
|
753 |
name="shopAddressPinCode${a}" type="text"
|
|
|
754 |
value="$shop.getAddress().getPinCode()"
|
|
|
755 |
class="form-control input-sm"> #else <input
|
|
|
756 |
placeholder="Pin Code" id="shopAddressPinCode${a}"
|
|
|
757 |
name="shopAddressPinCode${a}" type="text" value=""
|
|
|
758 |
class="form-control input-sm"> #end
|
|
|
759 |
</div>
|
|
|
760 |
</div>
|
|
|
761 |
|
|
|
762 |
<div class="row">
|
|
|
763 |
<div class="col-lg-4 form-group">
|
|
|
764 |
<p class="bold-details">STATE</p>
|
|
|
765 |
</div>
|
|
|
766 |
<div class="col-lg-6 form-group">
|
|
|
767 |
<select class="form-control input-sm" id="shopAddressState${a}"
|
|
|
768 |
name="shopAddressState${a}" placeholder="State">
|
|
|
769 |
<option value="" disabled selected>State</option>
|
|
|
770 |
#foreach($stateName in $stateNames)
|
|
|
771 |
#if($shop.getAddress().getState() &&
|
|
|
772 |
$shop.getAddress().getState() == $stateName)
|
|
|
773 |
<option value="$stateName" selected>$stateName</option> #else
|
|
|
774 |
<option value="$stateName">$stateName</option> #end #end
|
|
|
775 |
</select>
|
|
|
776 |
</div>
|
|
|
777 |
</div>
|
|
|
778 |
#set($a = $a + 1) #end
|
|
|
779 |
</div>
|
|
|
780 |
#end
|
|
|
781 |
<div id="shopDetailsSize" size="$a"></div>
|
|
|
782 |
</div>
|
|
|
783 |
<div class="row">
|
|
|
784 |
<div class="col-md-2 col-md-offset-5">
|
| 35289 |
amit |
785 |
<button id="updateDetails" class="btn btn-primary" type="submit">Update Details
|
| 33128 |
amit.gupta |
786 |
</button>
|
|
|
787 |
</div>
|
|
|
788 |
</div>
|
|
|
789 |
</form>
|
|
|
790 |
|
|
|
791 |
</div>
|
| 23396 |
ashik.ali |
792 |
</section>
|
| 24159 |
tejbeer |
793 |
|
| 28826 |
tejbeer |
794 |
<div id="addLocationModal" class="modal" role="dialog">
|
| 33128 |
amit.gupta |
795 |
<div class="modal-dialog">
|
| 28826 |
tejbeer |
796 |
|
| 33128 |
amit.gupta |
797 |
<!-- Modal content-->
|
|
|
798 |
<div class="modal-content">
|
|
|
799 |
<div class="modal-header">
|
|
|
800 |
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
|
801 |
<h4 class="modal-title">Add Location</h4>
|
|
|
802 |
</div>
|
|
|
803 |
<div class="modal-body">
|
|
|
804 |
#if($locationdetail)
|
|
|
805 |
<form id="add-location-modal">
|
|
|
806 |
<div class="col-log-6">
|
|
|
807 |
<div class="row">
|
|
|
808 |
<div class="col-lg-3 form-group">
|
|
|
809 |
<input placeholder="Name" id="personName" name="personName"
|
|
|
810 |
type="text" value="$locationdetail.getName()"
|
|
|
811 |
class="form-control input-sm">
|
|
|
812 |
</div>
|
|
|
813 |
<div class="col-lg-3 form-group">
|
|
|
814 |
<input placeholder="Address Line 1" id="line1" name="line1"
|
|
|
815 |
type="text" size="50" value="$locationdetail.getLine1()"
|
|
|
816 |
class="form-control input-sm">
|
|
|
817 |
</div>
|
|
|
818 |
<div class="col-lg-3 form-group">
|
|
|
819 |
<input placeholder="Address Line 2" id="line2" name="line2"
|
|
|
820 |
type="text" value="$locationdetail.getLine2()"
|
|
|
821 |
class="form-control input-sm">
|
|
|
822 |
</div>
|
|
|
823 |
</div>
|
| 28826 |
tejbeer |
824 |
|
| 33128 |
amit.gupta |
825 |
<div class="row">
|
|
|
826 |
<div class="col-lg-3 form-group">
|
|
|
827 |
<input placeholder="City" id="city" name="city" type="text"
|
|
|
828 |
value="$locationdetail.getCity()" class="form-control input-sm">
|
|
|
829 |
</div>
|
|
|
830 |
<div class="col-lg-3 form-group">
|
|
|
831 |
<select class="form-control input-sm" id="state" name="state"
|
|
|
832 |
placeholder="State">
|
|
|
833 |
<option value="" disabled selected>State</option>
|
|
|
834 |
#foreach($stateName in $stateNames)
|
|
|
835 |
#if($locationdetail.getState() == $stateName)
|
|
|
836 |
<option value="$stateName" selected>$stateName</option> #else
|
|
|
837 |
<option value="$stateName">$stateName</option> #end #end
|
|
|
838 |
</select>
|
|
|
839 |
</div>
|
| 28826 |
tejbeer |
840 |
|
| 33128 |
amit.gupta |
841 |
<div class="col-lg-3 form-group">
|
|
|
842 |
<input placeholder="Pin Code" id="pinCode" name="pinCode"
|
|
|
843 |
type="number" value="$locationdetail.getPin()"
|
|
|
844 |
class="form-control input-sm">
|
|
|
845 |
</div>
|
| 28826 |
tejbeer |
846 |
|
| 33128 |
amit.gupta |
847 |
<div class="col-lg-2">
|
|
|
848 |
<button class="btn btn-primary" id=""
|
|
|
849 |
onclick="updateLocationButton($locationdetail.getId())"
|
|
|
850 |
type="button">Update
|
|
|
851 |
</button>
|
| 28826 |
tejbeer |
852 |
|
| 33128 |
amit.gupta |
853 |
</div>
|
|
|
854 |
</div>
|
|
|
855 |
</div>
|
| 28826 |
tejbeer |
856 |
|
| 33128 |
amit.gupta |
857 |
</form>
|
|
|
858 |
#else
|
|
|
859 |
<form id="add-location-modal">
|
|
|
860 |
<div class="col-log-6">
|
|
|
861 |
<div class="row">
|
|
|
862 |
<div class="col-lg-3 form-group">
|
|
|
863 |
<input placeholder="Name" id="personName" name="personName"
|
|
|
864 |
type="text" value="" class="form-control input-sm">
|
|
|
865 |
</div>
|
|
|
866 |
<div class="col-lg-3 form-group">
|
|
|
867 |
<input placeholder="Address Line 1" id="line1" name="line1"
|
|
|
868 |
type="text" size="50" value="" class="form-control input-sm">
|
|
|
869 |
</div>
|
|
|
870 |
<div class="col-lg-3 form-group">
|
|
|
871 |
<input placeholder="Address Line 2" id="line2" name="line2"
|
|
|
872 |
type="text" value="" class="form-control input-sm">
|
|
|
873 |
</div>
|
|
|
874 |
</div>
|
| 28826 |
tejbeer |
875 |
|
| 33128 |
amit.gupta |
876 |
<div class="row">
|
|
|
877 |
<div class="col-lg-3 form-group">
|
|
|
878 |
<input placeholder="City" id="city" name="city" type="text"
|
|
|
879 |
value="" class="form-control input-sm">
|
|
|
880 |
</div>
|
|
|
881 |
<div class="col-lg-3 form-group">
|
|
|
882 |
<select class="form-control input-sm" id="state" name="state"
|
|
|
883 |
placeholder="State">
|
|
|
884 |
<option value="" disabled selected>State</option>
|
|
|
885 |
#foreach($stateName in $stateNames) #if($retailerStateName ==
|
|
|
886 |
$stateName)
|
|
|
887 |
<option value="$stateName" selected>$stateName</option> #else
|
|
|
888 |
<option value="$stateName">$stateName</option> #end #end
|
|
|
889 |
</select>
|
|
|
890 |
</div>
|
| 28826 |
tejbeer |
891 |
|
| 33128 |
amit.gupta |
892 |
<div class="col-lg-3 form-group">
|
|
|
893 |
<input placeholder="Pin Code" id="pinCode" name="pinCode"
|
|
|
894 |
type="number" value="" class="form-control input-sm">
|
|
|
895 |
</div>
|
| 28826 |
tejbeer |
896 |
|
| 33128 |
amit.gupta |
897 |
<div class="col-lg-2">
|
|
|
898 |
<input class="btn btn-primary addlocationbutton" type="button"
|
|
|
899 |
value="Add">
|
|
|
900 |
</div>
|
|
|
901 |
</div>
|
|
|
902 |
</div>
|
| 28826 |
tejbeer |
903 |
|
| 33128 |
amit.gupta |
904 |
</form>
|
|
|
905 |
#end
|
| 28826 |
tejbeer |
906 |
|
| 33128 |
amit.gupta |
907 |
</div>
|
|
|
908 |
</div>
|
|
|
909 |
</div>
|
| 28826 |
tejbeer |
910 |
</div>
|
| 24162 |
tejbeer |
911 |
|
| 28826 |
tejbeer |
912 |
</div>
|
| 35289 |
amit |
913 |
<script type="text/javascript">
|
|
|
914 |
$('.chosen-select').chosen({
|
|
|
915 |
search_contains: true
|
| 28826 |
tejbeer |
916 |
|
| 35289 |
amit |
917 |
});
|
|
|
918 |
stateNames = [];
|
|
|
919 |
#foreach($stateName in $stateNames)
|
|
|
920 |
//console.log("$stateName");
|
|
|
921 |
stateNames.push("$stateName");
|
|
|
922 |
#end
|
|
|
923 |
|
|
|
924 |
$(".addlocationbutton").click(function () {
|
|
|
925 |
$("#addLocationModal").modal({backdrop: false});
|
|
|
926 |
});
|
|
|
927 |
|
|
|
928 |
|
|
|
929 |
$(".createUser").click(function () {
|
|
|
930 |
$("#addUserModal").modal({backdrop: false});
|
|
|
931 |
});
|
|
|
932 |
#if($trialForm)
|
|
|
933 |
var trialForm = $trialForm;
|
| 35372 |
aman |
934 |
if (trialForm.status == "APPROVED") {
|
| 35289 |
amit |
935 |
$(document).ready(function () {
|
|
|
936 |
console.log(trialForm);
|
| 35643 |
aman |
937 |
$("#retailerDocument").attr("documentId", trialForm.aadhaarFrontDocumentId);
|
|
|
938 |
localStorage.setItem("retailerDocument", trialForm.aadhaarFrontDocumentId);
|
| 35289 |
amit |
939 |
$("#firstName").val(trialForm.firstName);
|
|
|
940 |
$("#lastName").val(trialForm.lastName);
|
|
|
941 |
$("#retailerName").val(trialForm.businessName);
|
|
|
942 |
$("#retailerNumber").val(trialForm.gstNumber);
|
|
|
943 |
$("#retailerAddressName").val(trialForm.businessName);
|
|
|
944 |
$("#retailerAddressLine1").val(trialForm.addressLine1);
|
|
|
945 |
$("#retailerAddressLine2").val(trialForm.addressLine2);
|
|
|
946 |
setTimeout(function () {
|
|
|
947 |
$("#retailerAddressPinCode").val(trialForm.pincode).trigger("change");
|
|
|
948 |
}, 1000);
|
|
|
949 |
$("#emailId").val(trialForm.email);
|
|
|
950 |
$("#mobileNumber").val(trialForm.mobile);
|
|
|
951 |
$("#fofoType").val("FRANCHISE");
|
|
|
952 |
$("#retailerShopDocument0").attr("documentId", trialForm.panDocumentId);
|
| 35297 |
amit |
953 |
localStorage.setItem("retailerShopDocument0", trialForm.panDocumentId);
|
| 35289 |
amit |
954 |
$("#shopName0").val(trialForm.businessName);
|
|
|
955 |
$("#gstNumber").val(trialForm.gstNumber);
|
|
|
956 |
|
|
|
957 |
//Important to set these fields
|
|
|
958 |
$("#counterPotential").val(300000);
|
|
|
959 |
$("#minInvestment").val(300000);
|
|
|
960 |
$("#active").prop("checked", true);
|
|
|
961 |
$("#fofoPartner").prop("checked", true);
|
|
|
962 |
//$("#sameAsRetailerAddress0").prop("checked", true);
|
|
|
963 |
|
|
|
964 |
$("#counterSize").val("THREE_LAC");
|
|
|
965 |
|
|
|
966 |
});
|
|
|
967 |
}
|
| 35297 |
amit |
968 |
console.log($("#emailId").val());
|
|
|
969 |
uri = new URL($("#mobileAppId")[0].href);
|
|
|
970 |
uri.search = "emailId=" + $("#emailId").val();
|
|
|
971 |
$("#mobileAppId")[0].href = uri.toString();
|
| 35289 |
amit |
972 |
|
| 35297 |
amit |
973 |
|
| 35289 |
amit |
974 |
#end
|
|
|
975 |
$(function () {
|
|
|
976 |
$('#update-retailer-details-form')
|
|
|
977 |
.validate({
|
|
|
978 |
submitHandler: function (form, event) {
|
|
|
979 |
event.preventDefault();
|
|
|
980 |
debugger;
|
|
|
981 |
if (validateRetailerDetails()) {
|
|
|
982 |
alert("Please fix errors");
|
|
|
983 |
return false;
|
|
|
984 |
}
|
|
|
985 |
var json = retailerDetailsJson();
|
|
|
986 |
debugger;
|
|
|
987 |
console.log("Retailer Details");
|
|
|
988 |
console.log(json);
|
|
|
989 |
if (confirm("Are you sure you want to update Retailer Details!")) {
|
|
|
990 |
doAjaxRequestWithJsonHandler(
|
|
|
991 |
`${context}/retailerDetails`,
|
|
|
992 |
"PUT",
|
|
|
993 |
json,
|
|
|
994 |
function (response) {
|
|
|
995 |
$(
|
|
|
996 |
'#retailer-details-container')
|
|
|
997 |
.html(
|
|
|
998 |
response);
|
|
|
999 |
if (localStorage
|
|
|
1000 |
.getItem("retailerDocument") !== null) {
|
|
|
1001 |
localStorage
|
|
|
1002 |
.removeItem("retailerDocument");
|
|
|
1003 |
}
|
|
|
1004 |
var shopDetailsSize = $(
|
|
|
1005 |
"#shopDetailsSize")
|
|
|
1006 |
.attr(
|
|
|
1007 |
"size");
|
|
|
1008 |
for (var i = 0; i < shopDetailsSize; i++) {
|
|
|
1009 |
if (localStorage
|
|
|
1010 |
.getItem("retailerShopDocument"
|
|
|
1011 |
+ i) != null) {
|
|
|
1012 |
localStorage
|
|
|
1013 |
.removeItem("retailerShopDocument"
|
|
|
1014 |
+ i);
|
|
|
1015 |
}
|
|
|
1016 |
}
|
|
|
1017 |
alert("Retailer Details has been successfully.");
|
|
|
1018 |
});
|
|
|
1019 |
return false; // required to
|
|
|
1020 |
// block normal
|
|
|
1021 |
// submit since
|
|
|
1022 |
// you used ajax
|
|
|
1023 |
}
|
|
|
1024 |
}
|
|
|
1025 |
});
|
|
|
1026 |
|
|
|
1027 |
});
|
|
|
1028 |
|
|
|
1029 |
</script>
|