Subversion Repositories SmartDukaan

Rev

Rev 24614 | Rev 25778 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

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