Subversion Repositories SmartDukaan

Rev

Rev 25511 | Go to most recent revision | Details | 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>
63
	    					<th>Color</th>
64
	    					<th>Serial Number</th>
65
	    					<th>Status</th>
66
 
67
	    				</tr>
68
	    					#if(!$liveDemo.isEmpty())
69
			    			#foreach( $request in $liveDemo )
70
			    				<tr class="live-demo" data="$request.getId()">
71
			    					<td>$request.getItemId()</td>
72
			    					<td>$fofoIdsAndRetailerName.getBusinessName()</td>
73
			    					<td>$request.getItem().getModelName()</td>
74
			    					<td>$request.getItem().getColor()</td>
75
			    					<td>$request.getSerialNumber()</td>
76
			    					<td><button class="btn btn-primary approve-billing"  data-serial="$request.getSerialNumber()"  type="button" style="width:100%;border-radius:0px;">Approve</button>
77
								     </td>
78
 
79
			    				</tr>	
80
			    	   #end
81
		    			#else
82
		    				<tr>
83
		    					<td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td>
84
		    				</tr>
85
		    			#end
86
	    			</tbody>
87
	    		</table>
88
	    	</div>
89
	    </div>
90
    </div>
91
    </section>
92
 
93
<script type="text/javascript">
94
 
95
 
96
$(document).ready(function() {
97
var customRetailers = ${customRetailers};
98
	$("#partnerId").typeahead({
99
	  source: customRetailers,
100
	  autoSelect: true,
101
	  displayText:function(item){return item.businessName + "-" + item.address.city;},
102
	  afterSelect:	function(currentItem){
103
	  					currentFofoId = currentItem.partnerId;
104
	  					console.log(currentFofoId);
105
	  				}
106
	});
107
 
108
});
109
 
110
</script>