| 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{
|
|
|
37 |
color:black;
|
|
|
38 |
text-transform:uppercase;
|
|
|
39 |
}
|
| 22219 |
ashik.ali |
40 |
.table-align-center{
|
|
|
41 |
text-align:center;
|
| 21987 |
kshitij.so |
42 |
}
|
|
|
43 |
</style>
|
| 22245 |
ashik.ali |
44 |
|
|
|
45 |
<script type="text/javascript">
|
|
|
46 |
var cartItemIndex = 0;
|
|
|
47 |
</script>
|
|
|
48 |
|
| 21987 |
kshitij.so |
49 |
<section class="wrapper">
|
|
|
50 |
<div class="row">
|
|
|
51 |
<div class="col-lg-12">
|
|
|
52 |
<h3 class="page-header"><i class="icon_table"></i>Order</h3>
|
|
|
53 |
<ol class="breadcrumb">
|
| 22116 |
amit.gupta |
54 |
<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
|
| 21987 |
kshitij.so |
55 |
<li><i class="icon_table"></i>ORDER</li>
|
|
|
56 |
</ol>
|
|
|
57 |
</div>
|
|
|
58 |
</div>
|
|
|
59 |
<form id="cd">
|
| 22245 |
ashik.ali |
60 |
|
| 21987 |
kshitij.so |
61 |
<div id="order-details" style="background:white;background-color:white;">
|
|
|
62 |
#if($cartObj.size()==0)
|
|
|
63 |
<div class="card row"
|
|
|
64 |
<p>Your Cart is Empty.</p>
|
|
|
65 |
</div>
|
|
|
66 |
#else
|
|
|
67 |
<h4 class="modelHeaderCustom" style="text-align:center;font-size:22px;margin-bottom:3%;">Product Information</h4>
|
| 22219 |
ashik.ali |
68 |
<div class = "row">
|
|
|
69 |
<div class="table-responsive">
|
|
|
70 |
<table class="table">
|
|
|
71 |
<tr>
|
|
|
72 |
<td><h4 class="grnProductInfo modelHeaderCustom table-align-center">Description</h4></td>
|
|
|
73 |
<td><h4 class="grnProductInfo modelHeaderCustom table-align-center">Quantity</h4></dt>
|
|
|
74 |
<td><h4 class="grnProductInfo modelHeaderCustom">Serial Number</h4></td>
|
|
|
75 |
<td><h4 class="grnProductInfo modelHeaderCustom">Insurance Amount</h4></td>
|
|
|
76 |
<td><h4 class="grnProductInfo modelHeaderCustom table-align-center">Unit Price</h4></td>
|
|
|
77 |
<td><h4 class="grnProductInfo modelHeaderCustom table-align-center">Total Price</h4></td>
|
|
|
78 |
</tr>
|
| 22245 |
ashik.ali |
79 |
|
| 22219 |
ashik.ali |
80 |
#foreach ($cartItem in $cartObj)
|
|
|
81 |
#if($cartItem.getQuantity() == 1)
|
|
|
82 |
<tr>
|
|
|
83 |
<td>$cartItem.getDisplayName()</td>
|
|
|
84 |
<td class = "table-align-center">1</td>
|
|
|
85 |
#if($cartItem.getItemType() =="SERIALIZED")
|
| 22245 |
ashik.ali |
86 |
<td class = "table-align-center"><div class="input-group"><input type="text" itemId="$cartItem.getItemId()" itemType="$cartItem.getItemType()" name="serialNumber" class="serialNumber form-control"></div></td>
|
|
|
87 |
<td class = "table-align-center"><div class="input-group"><input type="number" itemId="$cartItem.getItemId()" placeholder="" id="insuranceAmount" name="insuranceAmount" class="insuranceAmount form-control"></div></td>
|
| 22219 |
ashik.ali |
88 |
#else
|
| 22245 |
ashik.ali |
89 |
<td class = "table-align-center"><div class="input-group"><input type="text" name="serialNumber" itemType="$cartItem.getItemType()" class="serialNumber form-control" readonly></div></td>
|
|
|
90 |
<td class = "table-align-center"><div class="input-group"><input type="number" itemId="$cartItem.getItemId()" value = "0" name="insuranceAmount" class="insuranceAmount form-control" readonly></div></td>
|
| 22219 |
ashik.ali |
91 |
#end
|
| 22255 |
ashik.ali |
92 |
<td class = "table-align-center"><input type="number" class="unitPrice form-control" name="unitPrice" id = "unitPrice" quantity="$cartItem.getQuantity()" itemId="$cartItem.getItemId()" placeholder="$mopPriceMap.get($cartItem.getItemId()) - MRP"></td>
|
| 22245 |
ashik.ali |
93 |
<td class = "table-align-center"><input name="totalPrice" class="totalPrice form-control" itemId="$cartItem.getItemId()" type="number" value="0" readonly></td>
|
| 22219 |
ashik.ali |
94 |
</tr>
|
|
|
95 |
#else
|
| 22245 |
ashik.ali |
96 |
#if($cartItem.getItemType() =="SERIALIZED")
|
|
|
97 |
#set($start = 1)
|
|
|
98 |
#set($end = $cartItem.getQuantity())
|
|
|
99 |
#set($range = [$start..$end])
|
|
|
100 |
|
|
|
101 |
#foreach ($index in $range)
|
|
|
102 |
<tr>
|
|
|
103 |
<td>$cartItem.getDisplayName()</td>
|
|
|
104 |
<td class = "table-align-center">1</td>
|
|
|
105 |
<td class = "table-align-center"><div class="input-group"><input type="text" itemId="$cartItem.getItemId()" itemType="$cartItem.getItemType()" name="serialNumber" class="serialNumber form-control"></div></td>
|
|
|
106 |
<td class = "table-align-center"><div class="input-group"><input type="number" itemId="$cartItem.getItemId()" placeholder="" name="insuranceAmount" class="insuranceAmount form-control"></div></td>
|
| 22255 |
ashik.ali |
107 |
<td class = "table-align-center"><input type="number" class="unitPrice" name="unitPrice" quantity="1" value="0" itemId="$cartItem.getItemId()" placeholder="$mopPriceMap.get($cartItem.getItemId()) - MRP"></td>
|
| 22245 |
ashik.ali |
108 |
<td class = "table-align-center"><input name="totalPrice" class="totalPrice" itemId="$cartItem.getItemId()" type="number" value="0" readonly></td>
|
|
|
109 |
</tr>
|
|
|
110 |
#end
|
|
|
111 |
#else
|
|
|
112 |
<td>$cartItem.getDisplayName()</td>
|
|
|
113 |
<td class = "table-align-center">$cartItem.getQuantity()</td>
|
|
|
114 |
<td class = "table-align-center"><div class="input-group"><input type="text" itemId="$cartItem.getItemId()" name="serialNumber" itemType="$cartItem.getItemType()" class="serialNumber form-control" readonly></div></td>
|
|
|
115 |
<td class = "table-align-center"><div class="input-group"><input type="number" itemId="$cartItem.getItemId()" value = "0" name="insuranceAmount" class="insuranceAmount form-control" readonly></div></td>
|
| 22255 |
ashik.ali |
116 |
<td class = "table-align-center"><input type="number" class="unitPrice" name="unitPrice" quantity="$cartItem.getQuantity()" value="0" itemId="$cartItem.getItemId()" placeholder="$mopPriceMap.get($cartItem.getItemId()) - MRP"></td>
|
| 22245 |
ashik.ali |
117 |
<td class = "table-align-center"><input name="totalPrice" class="totalPrice" itemId="$cartItem.getItemId()" type="number" value="0" readonly></td>
|
| 22219 |
ashik.ali |
118 |
#end
|
|
|
119 |
#end
|
|
|
120 |
#end
|
|
|
121 |
</table>
|
| 21987 |
kshitij.so |
122 |
</div>
|
| 22219 |
ashik.ali |
123 |
</div>
|
|
|
124 |
|
| 21987 |
kshitij.so |
125 |
</div>
|
|
|
126 |
#end
|
| 22245 |
ashik.ali |
127 |
<div id="customer-details" style="background:white;background-color:white;padding:1%;">
|
|
|
128 |
<h4 class="modelHeaderCustom" style="text-align:center;font-size:22px;margin-bottom:3%;">Customer Information</h4>
|
|
|
129 |
<div>
|
|
|
130 |
<div class = "row">
|
|
|
131 |
<div class="col-lg-2 form-group">
|
|
|
132 |
<input placeholder="First Name" id="name" name="firstName" type="text" value="" class="form-control">
|
|
|
133 |
</div>
|
|
|
134 |
<div class="col-lg-2 form-group">
|
|
|
135 |
<input placeholder="Last Name" id="name" name="lastName" type="text" value="" class="form-control">
|
|
|
136 |
</div>
|
|
|
137 |
<div class="col-lg-3 form-group">
|
|
|
138 |
<input placeholder="Email" id="email" name="email" type="text" value="" class="form-control">
|
|
|
139 |
</div>
|
|
|
140 |
<div class="col-lg-3 form-group">
|
|
|
141 |
<input placeholder = "Phone Number" id="phone" name="phone" type="text" value="" class="form-control">
|
|
|
142 |
</div>
|
|
|
143 |
<div class="col-lg-2 form-group">
|
|
|
144 |
<input placeholder = "Date Of Birth" id="dateOfBirth" name="dateOfBirth" type="date" value="" class="form-control">
|
|
|
145 |
</div>
|
|
|
146 |
|
|
|
147 |
</div>
|
|
|
148 |
<div class = "row">
|
|
|
149 |
<div class="col-lg-4 form-group">
|
|
|
150 |
<input placeholder="Alternate Phone Number" id="alternatePhone" name="alternatePhone" type="text" value="" class="form-control">
|
|
|
151 |
</div>
|
|
|
152 |
<div class="col-lg-4 form-group">
|
|
|
153 |
<input placeholder="Address Line 1" id="line1" name="line1" type="text" size="50" value="" class="form-control">
|
|
|
154 |
</div>
|
|
|
155 |
<div class="col-lg-4 form-group">
|
|
|
156 |
<input placeholder="Address Line 2" id="line2" name="line2" type="text" value="" class="form-control">
|
|
|
157 |
</div>
|
|
|
158 |
</div>
|
|
|
159 |
<div class = "row">
|
|
|
160 |
<div class="col-lg-3 form-group">
|
|
|
161 |
<input placeholder="Landmark" id="landmark" name="landmark" type="text" value="" class="form-control">
|
|
|
162 |
</div>
|
|
|
163 |
<div class="col-lg-2 form-group">
|
|
|
164 |
<input placeholder="Pin Code" id="pinCode" name="pinCode" type="number" value="" class="form-control">
|
|
|
165 |
</div>
|
|
|
166 |
<div class="col-lg-3 form-group">
|
|
|
167 |
<input placeholder="City" id="city" name="city" type="text" value="" class="form-control">
|
|
|
168 |
</div>
|
|
|
169 |
<div class="col-lg-4 form-group">
|
|
|
170 |
<select class="form-control" name = "state" placeholder="State">
|
|
|
171 |
<option value="Andaman and Nicobar Islands">Andaman and Nicobar Islands</option>
|
|
|
172 |
<option value="Andhra Pradesh">Andhra Pradesh</option>
|
|
|
173 |
<option value="Arunachal Pradesh">Arunachal Pradesh</option>
|
|
|
174 |
<option value="Assam">Assam</option>
|
|
|
175 |
<option value="Bihar">Bihar</option>
|
|
|
176 |
<option value="Chandigarh">Chandigarh</option>
|
|
|
177 |
<option value="Chhattisgarh">Chhattisgarh</option>
|
|
|
178 |
<option value="Dadra and Nagar Haveli">Dadra and Nagar Haveli</option>
|
|
|
179 |
<option value="Daman and Diu">Daman and Diu</option>
|
|
|
180 |
<option value="Delhi">Delhi</option>
|
|
|
181 |
<option value="Goa">Goa</option>
|
|
|
182 |
<option value="Gujarat">Gujarat</option>
|
|
|
183 |
<option value="Haryana">Haryana</option>
|
|
|
184 |
<option value="Himachal Pradesh">Himachal Pradesh</option>
|
|
|
185 |
<option value="Jammu and Kashmir">Jammu and Kashmir</option>
|
|
|
186 |
<option value="Jharkhand">Jharkhand</option>
|
|
|
187 |
<option value="Karnataka">Karnataka</option>
|
|
|
188 |
<option value="Kerala">Kerala</option>
|
|
|
189 |
<option value="Lakshadweep">Lakshadweep</option>
|
|
|
190 |
<option value="Madhya Pradesh">Madhya Pradesh</option>
|
|
|
191 |
<option value="Maharashtra">Maharashtra</option>
|
|
|
192 |
<option value="Manipur">Manipur</option>
|
|
|
193 |
<option value="Meghalaya">Meghalaya</option>
|
|
|
194 |
<option value="Mizoram">Mizoram</option>
|
|
|
195 |
<option value="Nagaland">Nagaland</option>
|
|
|
196 |
<option value="Orissa">Orissa</option>
|
|
|
197 |
<option value="Pondicherry">Pondicherry</option>
|
|
|
198 |
<option value="Punjab">Punjab</option>
|
|
|
199 |
<option value="Rajasthan">Rajasthan</option>
|
|
|
200 |
<option value="Sikkim">Sikkim</option>
|
|
|
201 |
<option value="Tamil Nadu">Tamil Nadu</option>
|
|
|
202 |
<option value="Tripura">Tripura</option>
|
|
|
203 |
<option value="Telangana">Telangana</option>
|
|
|
204 |
<option value="Uttaranchal">Uttaranchal</option>
|
|
|
205 |
<option value="Uttar Pradesh">Uttar Pradesh</option>
|
|
|
206 |
<option value="West Bengal">West Bengal</option>
|
|
|
207 |
</select>
|
|
|
208 |
</div>
|
|
|
209 |
</div>
|
|
|
210 |
</div>
|
| 21987 |
kshitij.so |
211 |
<div id="payment-details" style="background:white;background-color:white;">
|
|
|
212 |
<div class="row">
|
|
|
213 |
<div class="col-lg-6 right">
|
|
|
214 |
<div class="col-lg-6">
|
|
|
215 |
<h4 class="grnProductInfo modelHeaderCustom right">Net Payable Amount :</h4>
|
|
|
216 |
</div>
|
|
|
217 |
<div class="col-lg-6">
|
|
|
218 |
<input type="number" class="netPayableAmount form-control" name="" value="0" readonly class="form-control">
|
|
|
219 |
</div>
|
|
|
220 |
</div>
|
|
|
221 |
</div>
|
|
|
222 |
<p></p>
|
|
|
223 |
<div class="row">
|
|
|
224 |
<div class="col-lg-6 right">
|
|
|
225 |
<div class="col-lg-6">
|
|
|
226 |
<h4 class="grnProductInfo modelHeaderCustom right">Cash Amount:</h4>
|
|
|
227 |
</div>
|
|
|
228 |
<div class="col-lg-6">
|
|
|
229 |
<input type="number" name="CASH" class="form-control cashAmount amount" value="0">
|
|
|
230 |
</div>
|
|
|
231 |
</div>
|
|
|
232 |
</div>
|
|
|
233 |
<p></p>
|
|
|
234 |
<div class="row">
|
|
|
235 |
<div class="col-lg-6 right">
|
|
|
236 |
<div class="col-lg-6">
|
|
|
237 |
<h4 class="grnProductInfo modelHeaderCustom right">Debit/Credit Card Amount:</h4>
|
|
|
238 |
</div>
|
|
|
239 |
<div class="col-lg-6">
|
|
|
240 |
<input type="number" name="CARD" class="form-control cardAmount amount" value="0">
|
|
|
241 |
</div>
|
|
|
242 |
</div>
|
|
|
243 |
</div>
|
|
|
244 |
<p></p>
|
|
|
245 |
<div class="row">
|
|
|
246 |
<div class="col-lg-6 right">
|
|
|
247 |
<div class="col-lg-6">
|
|
|
248 |
<h4 class="grnProductInfo modelHeaderCustom right">PayTm Amount:</h4>
|
|
|
249 |
</div>
|
|
|
250 |
<div class="col-lg-6">
|
|
|
251 |
<input type="number" name="PAYTM" class="form-control walletAmount amount" value="0">
|
|
|
252 |
</div>
|
|
|
253 |
</div>
|
|
|
254 |
</div>
|
|
|
255 |
</div>
|
|
|
256 |
</div>
|
|
|
257 |
<div id="create-order" style="padding:10px;">
|
|
|
258 |
<div class="row">
|
|
|
259 |
<div class="col-xs-3" style="float:right;">
|
|
|
260 |
<button class="btn btn-primary order-checkout" type="submit" style="width:100%;border-radius:0px;">Create Order</button>
|
|
|
261 |
</div>
|
|
|
262 |
</div>
|
|
|
263 |
</div>
|
|
|
264 |
</form>
|
|
|
265 |
</section>
|
| 22245 |
ashik.ali |
266 |
<script type="text/javascript" src="${rc.contextPath}/resources/js/order.js"></script>
|