Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
24465 tejbeer 1
<style>
2
	.table-striped > tbody > tr:nth-child(odd) > td{
3
  		background: white;
4
  		background-color: white;
5
	}
6
	.table-striped > tbody > tr:nth-child(even) > td{
7
  		background: white;
8
  		background-color:white;
9
	}
10
	.table-striped > tbody > tr:hover > td,
11
	.table-striped > tbody > tr:hover {
12
		background-color: #e98c8f;
13
	  	color:white;
14
	}
15
	.btn:hover{
16
  		color: grey;
17
  		text-decoration: none;
18
	}
19
	.btn-primary:hover{
20
  		color: grey;
21
  		text-decoration: none;
22
	}
23
	.sale-details{
24
		cursor:pointer;
25
	}
26
</style>
27
 
28
 
29
<section class="wrapper">
30
	<div class="row">
31
		<div class="col-lg-12">
32
			<h3 class="page-header"><i class="icon_document_alt"></i>CATALOG</h3>
33
			<ol class="breadcrumb">
34
				<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
35
				<li><i class="icon_document_alt"></i>Demo List</li>						  	
36
			</ol>
37
		</div>
38
	</div>
39
 
40
		<div>
41
		<div class="row">
42
    		<div class="col-lg-3">
43
                <div class="input-group">
44
			    	<input id="partnerId" type="text" class="typeahead form-control form-control-sm" placeholder="Search Partner by Store" data-provide="typeahead" 
45
			    	 #if(${retailerName}) value="${retailerName}" #end
46
			    	 autocomplete="off"/>
47
	               	<div class="input-group-btn">
48
		    			<button class="live_demo btn btn-primary">Search</button>
49
		    		</div>
50
		    	</div>
51
    		</div>
52
    		</div>
53
 
54
	<div id="live-demo-billing-table">
55
		<div class="row">
56
	    	<div class="col-lg-12">
57
	    		<table class="table table-striped table-advance table-hover">
58
	    			<tbody>
59
	    				<tr>
60
	    					<th>Item Id</th>
61
	    					<th>Retailer Name</th>
62
	    					<th>Model Name</th>
25511 tejbeer 63
	    					<th>Model Number</th>
24465 tejbeer 64
	    					<th>Color</th>
65
	    					<th>Serial Number</th>
66
	    					<th>Status</th>
67
 
68
	    				</tr>
69
	    					#if(!$liveDemo.isEmpty())
70
			    			#foreach( $request in $liveDemo )
71
			    				<tr class="live-demo" data="$request.getId()">
72
			    					<td>$request.getItemId()</td>
73
			    					<td>$fofoIdsAndRetailerName.getBusinessName()</td>
74
			    					<td>$request.getItem().getModelName()</td>
25511 tejbeer 75
			    					<td>$request.getItem().getModelNumber()</td>
24465 tejbeer 76
			    					<td>$request.getItem().getColor()</td>
77
			    					<td>$request.getSerialNumber()</td>
78
			    					<td><button class="btn btn-primary approve-billing"  data-serial="$request.getSerialNumber()"  type="button" style="width:100%;border-radius:0px;">Approve</button>
79
								     </td>
80
 
81
			    				</tr>	
82
			    	   #end
83
		    			#else
84
		    				<tr>
85
		    					<td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
86
		    				</tr>
87
		    			#end
88
	    			</tbody>
89
	    		</table>
90
	    	</div>
91
	    </div>
92
    </div>
93
    </section>
94
 
95
<script type="text/javascript">
96
 
97
 
98
$(document).ready(function() {
99
var customRetailers = ${customRetailers};
100
	$("#partnerId").typeahead({
101
	  source: customRetailers,
102
	  autoSelect: true,
103
	  displayText:function(item){return item.businessName + "-" + item.address.city;},
104
	  afterSelect:	function(currentItem){
105
	  					currentFofoId = currentItem.partnerId;
106
	  					console.log(currentFofoId);
107
	  				}
108
	});
109
 
110
});
111
 
112
</script>