Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
28371 amit.gupta 1
<style>
2
.grab {
3
	cursor: grab;
4
}
5
 
6
.grabbed {
7
	box-shadow: 0 0 13px #000;
8
}
9
 
10
.grabCursor, .grabCursor * {
11
	cursor: grabbing !important;
12
}
13
</style>
14
 
15
 
16
<div class="row">
17
	<div class="col-lg-6">
18
		<div class="col-lg-5">
30596 tejbeer 19
			<span style="font-size: 32px">$webOffer.getTitle()</span>
28371 amit.gupta 20
		</div>
21
		<div class="col-lg-7">
22
			<button class="update-rank" disabled class="btn btn-default"
30596 tejbeer 23
				type="button" data-id="$webOffer.getId()">Update Rank</button>
28371 amit.gupta 24
		</div>
25
 
26
	</div>
27
	<div class="col-lg-6">
28
		<div class="input-group">
29
			<input type="text" class="form-control typeahead" id="entityData"
30
				placeholder="Search for Item"> <span class="input-group-btn">
31
				<button id="add-to-offer" class="btn btn-default" type="button"
30596 tejbeer 32
					data-id="$webOffer.getId()">Add to Offer</button>
28371 amit.gupta 33
			</span>
34
		</div>
35
	</div>
36
</div>
37
<table class="table table-border table-condensed table-bordered"
38
	id="web-product-listing-table">
39
	<thead>
40
		<tr>
41
			<th>Catalog Id</th>
42
			<th>Item Name</th>
43
			<th>Rank</th>
44
			<th>Actions</th>
45
		</tr>
46
	</thead>
47
	<tbody id="web-product-listing-tbody">
48
		#if(!$productListing.isEmpty()) #foreach( $productListing in
49
		$productListings )
50
		<tr class="grab" data-entityid="$productListing.getEntityId()"
51
			data-id="$productListing.getId()">
52
			<td>$productListing.getEntityId()</td>
53
			<td>$productListing.getProductName()</td>
54
			<td>$productListing.getRank()</td>
55
			<td><a href="javascript:void(0)" data-web-productid="$productListing.getId()" class="product-remove">Remove</a></td>
56
		</tr>
57
		#end #else
58
		<tr>
59
			<td colspan="3" style="text-align: center;">NO MATCHING DATA
60
				FOUND FOR CRITERIA</td>
61
		</tr>
62
		#end
63
	</tbody>
64
</table>
65
 
66
<script type="text/javascript">
67
	getEntityAheadOptions($("#entityData"), function(selectedEntity) {
68
		entityId = selectedEntity.catalogId_i;
69
	});
70
 
71
	$(document).ready(function() {
72
		$('#web-product-listing-table').DataTable({
73
			"bPaginate" : true,
74
			"bLengthChange" : true,
75
			"bFilter" : true,
76
			"bInfo" : false,
77
			"bAutoWidth" : false,
78
			"pageLength" : 200
79
		});
80
	});
81
</script>
82