Subversion Repositories SmartDukaan

Rev

Rev 26768 | Rev 27046 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 26768 Rev 26817
Line 36... Line 36...
36
	
36
	
37
	
37
	
38
	
38
	
39
	<div id="pending-order-table">
39
	<div id="pending-order-table">
40
		<div class="row">
40
		<div class="row">
41
	    	<div class="col-lg-4">
41
	    	<div class="col-lg-6">
42
	    		<table class="table table-border table-condensed table-bordered" id="pending-order">
42
	    		<table class="table table-border table-condensed table-bordered" id="pending-order">
43
	    		     <thead>
43
	    		     <thead>
44
	    				<tr>
44
	    				<tr>
45
	    					<th>Id</th>
45
	    					<th>Id</th>
46
	    					<th>First Name</th>
46
	    					<th>First Name</th>
47
	    					<th>Last Name</th>
47
	    					<th>Last Name</th>
48
	    					<th>Mobile</th>
48
	    					<th>Mobile</th>
49
	    					<th>Status</th>
49
	    					<th>Order Status</th>
50
	    					#if($customRetailersMap)
50
	    					#if($customRetailersMap)
51
	    					<th>Partner</th>
51
	    					<th>Partner</th>
52
	    					#end
52
	    					#end
53
	    					<th>created on </th>
53
	    					<th>Created on </th>
54
	    					<th>View</th>
54
	    					<th>Actions</th>
55
	    					 #if($isAdmin)
-
 
56
								     <th>Cancel</th>
-
 
57
								     #end
-
 
58
	    				</tr>
55
	    				</tr>
59
	    				</thead>
56
    				</thead>
60
	    					<tbody>
57
    				<tbody>
61
	    					#if(!$pendingOrder.isEmpty())
58
    					#if(!$pendingOrder.isEmpty())
62
			    			#foreach( $request in $pendingOrder )
59
		    			#foreach( $request in $pendingOrder )
63
			    				<tr class="pendingOrder" data="$request.getId()">
60
		    				<tr class="pendingOrder" data="$request.getId()">
64
			    					<td>$request.getId()</td>
61
		    					<td>$request.getId()</td>
65
			    					<td>$request.getCustomerFirstName()</td>
62
		    					<td>$request.getCustomer().getFirstName()</td>
66
			    					<td>$request.getCustomerLastName()</td>
63
		    					<td>$request.getCustomer().getLastName()</td>
67
			    					<td>$request.getMobileNumber()</td>
64
		    					<td>$request.getCustomer().getMobileNumber()</td>
68
			    					<td>$request.getStatus()</td>
65
		    					<td>$request.getStatus()</td>
69
			    					#if($customRetailersMap)
66
		    					#if($customRetailersMap)
70
			    					<td>$customRetailersMap.get($request.getFofoId()).getBusinessName()</td>
67
		    					<td>$customRetailersMap.get($request.getFofoId()).getBusinessName()</td>
71
			    					#end
68
		    					#end
72
			    				    <td>$request.getCreateTimestamp().format($dateTimeFormatter)</td>
69
		    				    <td>$request.getCreateTimestamp().format($dateTimeFormatter)</td>
73
			    				    <td><button class="btn btn-primary pendingOrderDetail"  data-orderid="$request.getId()"  data-gst="$request.getCustomerGstNumber()"  data-emailid="$request.getEmailId()" data-line1="$request.getLine1()"  
-
 
-
 
70
		    				    <td>
74
			    				    data-line2="$request.getLine2()"  data-city="$request.getCity()" data-state="$request.getState()"
71
		    				    	<button class="btn btn-primary pendingOrderDetail"  data-orderid="$request.getId()"  
75
			    				    data-pincode="$request.getPinCode()"
-
 
76
			    				     type="button" style="width:100%; border-radius:0px;">View</button>
72
		    				     		type="button" style="width:100%; border-radius:0px;">View</button>
77
								     </td>
-
 
78
								     
-
 
79
								     #if($isAdmin)
73
								     #if($isAdmin)
80
								     <td><button class="btn btn-primary pendingOrderCancel"  data-orderid="$request.getId()"  
74
								     	<button class="btn btn-primary pendingOrderCancel"  data-orderid="$request.getId()" type="button" style="width:100%; border-radius:0px;">Cancel</button>
81
			    				  
-
 
82
			    				     type="button" style="width:100%; border-radius:0px;">Cancel</button></td>
-
 
83
								     #end
75
								     #end
-
 
76
								</td>
84
								 </tr>
77
							 </tr>
-
 
78
						#end
85
			    		<script type="text/javascript">
79
			    		<script type="text/javascript">
86
			    			$(document).ready(function() {
80
			    			$(document).ready(function() {
87
							 	$('#pending-order').dataTable({
81
							 	$('#pending-order').dataTable({
88
								 "bPaginate": true,
82
								 "bPaginate": true,
89
							    "bLengthChange": true,
83
							    "bLengthChange": true,
Line 91... Line 85...
91
							    "bInfo": false,
85
							    "bInfo": false,
92
							    "bAutoWidth": false 
86
							    "bAutoWidth": false 
93
								});
87
								});
94
							});
88
							});
95
						</script>	
89
						</script>	
96
			    	   #end
-
 
97
		    			#else
90
		    			#else
98
		    				<tr>
91
		    				<tr>
99
		    					<td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
92
		    					<td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
100
		    				</tr>
93
		    				</tr>
101
		    			#end
94
	    				#end
102
	    			</tbody>
95
    				</tbody>
103
	    		</table>
96
    			</table>
104
	    	</div>
97
    		</div>
105
	    	
98
    	
106
	    	<div class="col-lg-6"  style="float:right";>
99
    		<div class="col-lg-6">
107
	    	  <div class="pending-order-container">
100
				<div class="pending-order-container">
108
 
-
 
109
              </div>
101
				</div>
110
	    	</div>
102
    		</div>
111
	    </div>
103
    	</div>
112
    </div>
104
	</div>
113
    </section>
105
</section>
114
    
106
    
115
107