| 21987 |
kshitij.so |
1 |
<style>
|
|
|
2 |
.row{
|
|
|
3 |
margin:0 auto;
|
|
|
4 |
}
|
|
|
5 |
.modal-content{
|
|
|
6 |
background : white;
|
|
|
7 |
}
|
|
|
8 |
.modelHeaderCustom{
|
|
|
9 |
font-size:14px;
|
|
|
10 |
font-weight:bold;
|
|
|
11 |
}
|
|
|
12 |
.border-highlight{
|
|
|
13 |
border : 3px solid red;
|
|
|
14 |
}
|
|
|
15 |
hr{
|
|
|
16 |
background-color:#007aff;
|
|
|
17 |
border:none;
|
|
|
18 |
height:1px;
|
|
|
19 |
background:#007aff;
|
|
|
20 |
}
|
|
|
21 |
.control-label {
|
|
|
22 |
margin-top: 0;
|
|
|
23 |
margin-bottom: 0;
|
|
|
24 |
padding-top: 7px;
|
|
|
25 |
font-weight:bold;
|
|
|
26 |
font-size:14px;
|
|
|
27 |
}
|
|
|
28 |
.form-group{
|
|
|
29 |
border-bottom: 1px solid #eff2f7;
|
|
|
30 |
padding-bottom: 15px;
|
|
|
31 |
margin-bottom: 15px;
|
|
|
32 |
}
|
|
|
33 |
.right{
|
|
|
34 |
float:right;
|
|
|
35 |
}
|
|
|
36 |
.form-control{
|
| 24440 |
amit.gupta |
37 |
color:#373737;
|
| 21987 |
kshitij.so |
38 |
}
|
| 22219 |
ashik.ali |
39 |
.table-align-center{
|
|
|
40 |
text-align:center;
|
| 21987 |
kshitij.so |
41 |
}
|
|
|
42 |
</style>
|
| 22245 |
ashik.ali |
43 |
|
|
|
44 |
<script type="text/javascript">
|
|
|
45 |
var cartItemIndex = 0;
|
| 23821 |
amit.gupta |
46 |
accessoriesDeals = $accessoriesDeals;
|
| 23181 |
ashik.ali |
47 |
$(function() {
|
| 23886 |
amit.gupta |
48 |
$('input[name="dateOfBirth"]').daterangepicker(getSingleDatePicker(), dateRangeCallback);
|
| 25810 |
amit.gupta |
49 |
$('input[name="dgmfgdate"]').daterangepicker(getSingleDatePicker(), function (start, end) {
|
|
|
50 |
startMoment = start;
|
| 25813 |
amit.gupta |
51 |
mfgDate = start.format(moment.HTML5_FMT.DATETIME_LOCAL_SECONDS);
|
| 25810 |
amit.gupta |
52 |
});
|
| 24440 |
amit.gupta |
53 |
formLoaded();
|
| 23181 |
ashik.ali |
54 |
});
|
|
|
55 |
|
| 22245 |
ashik.ali |
56 |
</script>
|
|
|
57 |
|
| 21987 |
kshitij.so |
58 |
<section class="wrapper">
|
|
|
59 |
<div class="row">
|
|
|
60 |
<div class="col-lg-12">
|
|
|
61 |
<h3 class="page-header"><i class="icon_table"></i>Order</h3>
|
|
|
62 |
<ol class="breadcrumb">
|
| 22116 |
amit.gupta |
63 |
<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
|
| 21987 |
kshitij.so |
64 |
<li><i class="icon_table"></i>ORDER</li>
|
|
|
65 |
</ol>
|
|
|
66 |
</div>
|
|
|
67 |
</div>
|
|
|
68 |
<form id="cd">
|
| 22245 |
ashik.ali |
69 |
|
| 24440 |
amit.gupta |
70 |
<div id="order-details" style="padding:10px">
|
|
|
71 |
#if($cartItems.size()==0)
|
| 21987 |
kshitij.so |
72 |
<div class="card row"
|
|
|
73 |
<p>Your Cart is Empty.</p>
|
|
|
74 |
</div>
|
|
|
75 |
#else
|
| 24440 |
amit.gupta |
76 |
<div class = "row">
|
|
|
77 |
<div class="table-responsive col-lg-8" style="background-color:white">
|
|
|
78 |
<h4 class="modelHeaderCustom" style="font-size:22px;">Product Information</h4>
|
|
|
79 |
<table class="table table-condensed">
|
|
|
80 |
<tr>
|
| 24614 |
amit.gupta |
81 |
<th style="width:25%">Description</th>
|
| 24613 |
amit.gupta |
82 |
<th style="width:10%">Quantity</th>
|
| 24614 |
amit.gupta |
83 |
<th style="width:15%">Serial Number</th>
|
|
|
84 |
<th style="width:12%">Unit Price</th>
|
| 24613 |
amit.gupta |
85 |
<th style="width:15%">Mobile Insurance</th>
|
| 24440 |
amit.gupta |
86 |
<!--<th><h4 class="grnProductInfo modelHeaderCustom table-align-center">Discount</h4></th>-->
|
| 24614 |
amit.gupta |
87 |
<th style="width:12%">Total Price</th>
|
| 24440 |
amit.gupta |
88 |
</tr>
|
|
|
89 |
|
|
|
90 |
#foreach ($cartItem in $cartItems)
|
|
|
91 |
#set($mrp="MRP")
|
|
|
92 |
#if($mopPriceMap.get($cartItem.getItemId()).getMrp()!=0)
|
|
|
93 |
#set($mrp="$mopPriceMap.get($cartItem.getItemId()).getMrp()(MRP)")
|
|
|
94 |
#end
|
|
|
95 |
|
|
|
96 |
#set($placeHolder = "$mopPriceMap.get($cartItem.getItemId()).getPrice() - $mrp")
|
|
|
97 |
#set($dp = $mopPriceMap.get($cartItem.getItemId()).getPurchasePrice())
|
|
|
98 |
#if($accessoriesDeals && $cartItem.getItemType() =="NON_SERIALIZED")
|
|
|
99 |
#set($placeHolder = "$mopPriceMap.get($cartItem.getItemId()).getPurchasePrice()(DP) - $mopPriceMap.get($cartItem.getItemId()).getPrice()(MOP) - $mrp")
|
|
|
100 |
#end
|
|
|
101 |
#if($cartItem.getItemType() =="SERIALIZED")
|
|
|
102 |
#set($start = 1)
|
|
|
103 |
#set($end = $cartItem.getQuantity())
|
|
|
104 |
#set($range = [$start..$end])
|
|
|
105 |
|
|
|
106 |
#foreach ($index in $range)
|
|
|
107 |
<tr>
|
|
|
108 |
<td>$cartItem.getDisplayName()</td>
|
|
|
109 |
<td class = "table-align-center">1</td>
|
|
|
110 |
<td class = "table-align-center">
|
|
|
111 |
<input readonly type="text" itemId="$cartItem.getItemId()" itemType="$cartItem.getItemType()" name="serialNumber" class="serialNumber input-sm form-control">
|
|
|
112 |
</td>
|
|
|
113 |
<td class = "table-align-center">
|
|
|
114 |
<input type="number" class="unitPrice form-control input-sm" name="unitPrice" quantity="1" itemId="$cartItem.getItemId()"
|
|
|
115 |
mopPrice="$mopPriceMap.get($cartItem.getItemId()).getPrice()" dp="$dp" mopPrice="$mopPriceMap.get($cartItem.getItemId()).isMop()" placeholder="$placeHolder">
|
|
|
116 |
</td>
|
|
|
117 |
<td class = "table-align-center">
|
|
|
118 |
<div class="input-group">
|
|
|
119 |
<input type="number" itemId="$cartItem.getItemId()" value = "0" name="insuranceamount" class="insuranceamount form-control input-sm" readonly>
|
|
|
120 |
<input type="hidden" itemId="$cartItem.getItemId()" value = "0" name="insuranceid" class="insuranceid">
|
| 25778 |
amit.gupta |
121 |
<input type="hidden" itemId="$cartItem.getItemId()" name="ram" class="ram">
|
|
|
122 |
<input type="hidden" itemId="$cartItem.getItemId()" name="memory" class="memory">
|
|
|
123 |
<input type="hidden" itemId="$cartItem.getItemId()" name="mfgdate" class="mfgdate">
|
| 24440 |
amit.gupta |
124 |
<div class="input-group-btn">
|
|
|
125 |
<button type="button" class="btn btn-sm btn-default mk_check_plans"
|
|
|
126 |
data-mop="$mopPriceMap.get($cartItem.getItemId()).getPrice()">
|
|
|
127 |
Check Plans
|
|
|
128 |
</button>
|
|
|
129 |
</div>
|
|
|
130 |
</div>
|
|
|
131 |
</td>
|
|
|
132 |
<td class = "table-align-center"><input name="totalPrice" class="totalPrice input-sm form-control" itemId="$cartItem.getItemId()" type="number" value="0" readonly></td>
|
|
|
133 |
</tr>
|
| 23821 |
amit.gupta |
134 |
#end
|
| 24440 |
amit.gupta |
135 |
#else
|
|
|
136 |
<tr>
|
|
|
137 |
<td>$cartItem.getDisplayName()</td>
|
|
|
138 |
<td class = "table-align-center">$cartItem.getQuantity()</td>
|
|
|
139 |
<td class = "table-align-center"><div class="input-group"><input type="text" itemId="$cartItem.getItemId()" name="serialNumber" itemType="$cartItem.getItemType()" class="serialNumber form-control input-sm" readonly></div></td>
|
|
|
140 |
<td class = "table-align-center">
|
|
|
141 |
<input type="number" class="unitPrice input-sm form-control" dp="$dp" name="unitPrice" quantity="$cartItem.getQuantity()" itemId="$cartItem.getItemId()"
|
|
|
142 |
mopPrice="$mopPriceMap.get($cartItem.getItemId()).getPrice()" mopPrice="$mopPriceMap.get($cartItem.getItemId()).isMop()" placeholder="$placeHolder" />
|
|
|
143 |
</td>
|
|
|
144 |
<td>Not Applicable</td>
|
|
|
145 |
<td class = "table-align-center"><input name="totalPrice" class="totalPrice input-sm form-control" itemId="$cartItem.getItemId()" type="number" value="0" readonly></td>
|
| 23419 |
ashik.ali |
146 |
</tr>
|
| 24440 |
amit.gupta |
147 |
#end
|
|
|
148 |
#end
|
|
|
149 |
</table>
|
|
|
150 |
<div>
|
| 25810 |
amit.gupta |
151 |
<h4 class="modelHeaderCustom" style="font-size:22px;">Customer Information
|
|
|
152 |
#if (${isDev})
|
|
|
153 |
<small><a href="javascript:void(0);" class="mk_restore">(Restore Previous)</a></small>
|
|
|
154 |
#end
|
|
|
155 |
</h4>
|
| 24440 |
amit.gupta |
156 |
<div class = "row">
|
|
|
157 |
<div class="col-lg-3 form-group">
|
|
|
158 |
<input placeholder="First Name" id="firstName" name="firstName" type="text" value="" class="form-control input-sm">
|
|
|
159 |
</div>
|
|
|
160 |
<div class="col-lg-3 form-group">
|
|
|
161 |
<input placeholder="Last Name" id="lastName" name="lastName" type="text" value="" class="form-control input-sm">
|
|
|
162 |
</div>
|
|
|
163 |
<div class="col-lg-2 form-group">
|
|
|
164 |
<input placeholder="Email*" id="email" name="email" type="text" value="" class="form-control input-sm">
|
|
|
165 |
</div>
|
|
|
166 |
<div class="col-lg-2 form-group">
|
|
|
167 |
<input placeholder = "Phone Number*" id="phone" addressId="" name="phone" type="text" value="" class="form-control phone input-sm">
|
|
|
168 |
</div>
|
|
|
169 |
|
| 22245 |
ashik.ali |
170 |
</div>
|
| 24440 |
amit.gupta |
171 |
<div class = "row">
|
|
|
172 |
<div class="col-lg-3 form-group">
|
|
|
173 |
<input placeholder="GST Number" id="gstNumber" name="gstNumber" type="text" value="" class="form-control input-sm">
|
|
|
174 |
</div>
|
|
|
175 |
<div class="col-lg-3 form-group">
|
|
|
176 |
<input placeholder="Address Line 1" id="line1" name="line1" type="text" size="50" value="" class="form-control input-sm">
|
|
|
177 |
</div>
|
|
|
178 |
<div class="col-lg-2 form-group">
|
|
|
179 |
<input placeholder="Address Line 2" id="line2" name="line2" type="text" value="" class="form-control input-sm">
|
|
|
180 |
</div>
|
|
|
181 |
<div class="col-lg-2 form-group">
|
|
|
182 |
<input placeholder="Alternate Phone Number" id="alternatePhone" name="alternatePhone" type="text" value="" class="form-control input-sm">
|
|
|
183 |
</div>
|
| 22245 |
ashik.ali |
184 |
</div>
|
| 24440 |
amit.gupta |
185 |
<div class = "row">
|
|
|
186 |
<div class="col-lg-3 form-group">
|
|
|
187 |
<input placeholder="Landmark" id="landmark" name="landmark" type="text" value="" class="form-control input-sm">
|
|
|
188 |
</div>
|
|
|
189 |
<div class="col-lg-3 form-group">
|
|
|
190 |
<input placeholder="Pin Code" id="pinCode" name="pinCode" type="number" value="" class="form-control input-sm">
|
|
|
191 |
</div>
|
|
|
192 |
<div class="col-lg-2 form-group">
|
|
|
193 |
<input placeholder="City" id="city" name="city" type="text" value="" class="form-control input-sm">
|
|
|
194 |
</div>
|
|
|
195 |
<div class="col-lg-2 form-group">
|
|
|
196 |
<select class="form-control input-sm" id = "state" name = "state" placeholder="State">
|
|
|
197 |
<option value="" disabled selected>State</option>
|
|
|
198 |
#foreach($stateName in $stateNames)
|
|
|
199 |
#if($retailerStateName == $stateName)
|
|
|
200 |
<option value="$stateName" selected>$stateName</option>
|
|
|
201 |
#else
|
|
|
202 |
<option value="$stateName">$stateName</option>
|
|
|
203 |
#end
|
| 23299 |
ashik.ali |
204 |
#end
|
| 24440 |
amit.gupta |
205 |
|
|
|
206 |
</select>
|
|
|
207 |
</div>
|
|
|
208 |
</div>
|
|
|
209 |
<div class="row mk_insurance_row" style="display:none">
|
|
|
210 |
<div class="col-lg-2 form-group">
|
|
|
211 |
<select class="form-control input-sm" id="gender" name ="gender" placeholder="Gender">
|
|
|
212 |
<option value="" disabled selected>Gender</option>
|
|
|
213 |
<option value="1" selected>Male</option>
|
|
|
214 |
<option value="2" selected>Female</option>
|
|
|
215 |
</select>
|
|
|
216 |
</div>
|
|
|
217 |
<div class="col-lg-2 form-group">
|
|
|
218 |
<input placeholder = "Date Of Birth" id="dateOfBirth" name="dateOfBirth" type="text" value="" class="form-control">
|
|
|
219 |
</div>
|
| 22245 |
ashik.ali |
220 |
</div>
|
|
|
221 |
</div>
|
| 24440 |
amit.gupta |
222 |
</div>
|
|
|
223 |
<div class="col-lg-4 row">
|
|
|
224 |
<div class="col-lg-1"></div>
|
| 24475 |
amit.gupta |
225 |
<div id="payment-details" style="background:white;background-color:white;" class="col-lg-10">
|
| 24440 |
amit.gupta |
226 |
<h4 class="modelHeaderCustom" style="font-size:22px;">Payment Details</h4>
|
|
|
227 |
<div class="row">
|
| 24475 |
amit.gupta |
228 |
<div class="col-lg-7">
|
| 24440 |
amit.gupta |
229 |
<h4>Total Amount :</h4>
|
|
|
230 |
</div>
|
| 24475 |
amit.gupta |
231 |
<div class="col-lg-5">
|
| 24440 |
amit.gupta |
232 |
<input type="number" class="netPayableAmount form-control input-sm" name="" value="0" readonly>
|
|
|
233 |
</div>
|
| 21987 |
kshitij.so |
234 |
</div>
|
| 24440 |
amit.gupta |
235 |
<div id="payment-option-id-amount-container" paymentOptionSize = $paymentOptions.size()>
|
|
|
236 |
#set($a = 0)
|
|
|
237 |
#set($b = $paymentOptions.size() - 1)
|
|
|
238 |
#set($range = [$a..$b])
|
|
|
239 |
|
|
|
240 |
#foreach($index in $range)
|
|
|
241 |
<div class="row">
|
|
|
242 |
#set($paymentOption = $paymentOptions[$index])
|
| 24475 |
amit.gupta |
243 |
<div class="col-lg-7">
|
| 24440 |
amit.gupta |
244 |
<h4>$paymentOption.getName() :</h4>
|
|
|
245 |
</div>
|
| 24475 |
amit.gupta |
246 |
<div class="col-lg-5">
|
| 24440 |
amit.gupta |
247 |
<input type="number" id="paymentOptionIdAmount${index}" name="paymentOptionIdAmount${index}"
|
|
|
248 |
class="form-control paymentOptionAmount amount input-sm" value="0" paymentOptionId="$paymentOption.getId()">
|
|
|
249 |
</div>
|
| 21987 |
kshitij.so |
250 |
</div>
|
| 24440 |
amit.gupta |
251 |
#end
|
| 23434 |
ashik.ali |
252 |
</div>
|
| 23367 |
ashik.ali |
253 |
<div class="row">
|
| 24440 |
amit.gupta |
254 |
<div class="form-group col-lg-10">
|
|
|
255 |
<button class="btn btn-block btn-primary order-checkout" type="submit">Create Order</button>
|
| 23353 |
ashik.ali |
256 |
</div>
|
| 21987 |
kshitij.so |
257 |
</div>
|
|
|
258 |
</div>
|
|
|
259 |
</div>
|
|
|
260 |
</div>
|
| 24440 |
amit.gupta |
261 |
#end
|
|
|
262 |
</div>
|
| 21987 |
kshitij.so |
263 |
</form>
|
| 23347 |
ashik.ali |
264 |
</section>
|
| 24440 |
amit.gupta |
265 |
<div class="modal modal-lg fade row" id="mobilePlansModal" tabindex="-1" role="dialog">
|
|
|
266 |
<div class="modal-dialog modal-lg" role="document">
|
|
|
267 |
<div class="modal-content">
|
|
|
268 |
<div class="modal-header">
|
|
|
269 |
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
|
|
|
270 |
<h4 class="modal-title">Choose from plans</h4>
|
|
|
271 |
</div>
|
|
|
272 |
<div class="modal-body">
|
| 25776 |
amit.gupta |
273 |
<div class="row itemdetails">
|
|
|
274 |
<div class="row col-lg-3">
|
|
|
275 |
<div class="col-lg-6">
|
| 25778 |
amit.gupta |
276 |
<h4>*Ram(GB):</h4>
|
| 25776 |
amit.gupta |
277 |
</div>
|
| 25778 |
amit.gupta |
278 |
<div class="col-lg-6 form-group">
|
|
|
279 |
<input type="number" class="dgram form-control input-sm" name="ram" value="0">
|
|
|
280 |
</div>
|
|
|
281 |
</div>
|
|
|
282 |
<div class="row col-lg-4">
|
| 25776 |
amit.gupta |
283 |
<div class="col-lg-6">
|
| 25778 |
amit.gupta |
284 |
<h4>*Memory(GB):</h4>
|
| 25776 |
amit.gupta |
285 |
</div>
|
| 25778 |
amit.gupta |
286 |
<div class="col-lg-5 form-group">
|
|
|
287 |
<input type="number" class="dgmemory form-control input-sm" name="memory" value="0">
|
|
|
288 |
</div>
|
| 25776 |
amit.gupta |
289 |
</div>
|
| 25778 |
amit.gupta |
290 |
<div class="col-lg-4">
|
|
|
291 |
<div class="col-lg-3">
|
|
|
292 |
<h4>*Mfg Date:</h4>
|
| 25776 |
amit.gupta |
293 |
</div>
|
| 25778 |
amit.gupta |
294 |
<div class="col-lg-6 form-group">
|
|
|
295 |
<input placeholder = "Mfg Date" id="dgmfgdate" name="dgmfgdate" type="text" value="" class="form-control input-sm dgmfgdate" >
|
| 25776 |
amit.gupta |
296 |
</div>
|
|
|
297 |
</div>
|
|
|
298 |
</div>
|
|
|
299 |
<div class="row insurancedetails">
|
|
|
300 |
</div>
|
| 24440 |
amit.gupta |
301 |
</div>
|
|
|
302 |
</div>
|
|
|
303 |
</div>
|
|
|
304 |
</div>
|