Subversion Repositories SmartDukaan

Rev

Rev 32457 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
28754 tejbeer 1
<script>	
2
	$(function() {
3
		getItemAheadOptions($("#item-search-text"), false, function(
4
				selectedItem) {
5
			catalogItemId = selectedItem.catalogId;
6
			console.log(catalogItemId);
7
		});
8
	});
9
 
10
 
11
 
12
 
13
</script>
14
 
15
 <section class="wrapper">
16
 
17
 
18
	<div class="row">
19
		<div class="col-lg-12">
20
			<h3 class="page-header"><i class="icon_document_alt"></i>Add High Demand Items</h3>
21
			<ol class="breadcrumb">
22
				<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
23
				<li><i class="icon_document_alt"></i>High Demand Items</li>						  	
24
			</ol>
25
		</div>
26
	</div>
27
 
28
 
29
  <div class = "row">
30
 
31
 
32
 
32457 jai.hind 33
        <div class="col-lg-3">
28754 tejbeer 34
	    <label>Item</label>
35
		  	<input type="text" class="typeahead form-control"
36
							id="item-search-text" name="Item"
37
							data-provide="typeahead" autocomplete="off" value=""
38
							style="width: 300px;" placeholder="Search for product..." />  
39
	    </div>
40
 
32457 jai.hind 41
	     <div class="col-lg-3">
28754 tejbeer 42
	    <label>Item</label>
32457 jai.hind 43
		  	<input type="text" id="item-qty" class="typeahead form-control" name="item-qty" value="" style="width: 300px;" placeholder="Item Qty" />
28754 tejbeer 44
	    </div>
45
 
46
	      <div class="col-lg-2">
47
 
48
	    	<button class="btn btn-primary add-high-demand-item" style = "margin-top:25px" type="button">Submit</button>
49
	    	</div>
32457 jai.hind 50
   </div><br>
28754 tejbeer 51
 
52
     <div id="hdi-table">
53
		<div class="row">
32457 jai.hind 54
	    	<div class="col-lg-5">
28754 tejbeer 55
	    		<table class="table table-striped table-advance table-hover">
56
	    			<tbody>
57
	    				<tr>
58
	    					<th>Item Name</th>
59
	    					<th>Quantity </th>
60
	    					<th>Created</th>
61
	    					<th>Action</th>
62
 
63
 
64
	    				</tr>
65
	    				#if(!$hdis.isEmpty())
33966 aman.kumar 66
							#foreach( $hdisModel in $hdis )
67
							<tr class="hdi-info" data="$hdisModel.getId()">
68
								<td>$itemMap.get($hdisModel.getCatalogId()).getBrand()
69
									$itemMap.get($hdisModel.getCatalogId()).getModelName()
70
									$itemMap.get($hdisModel.getCatalogId()).getModelNumber()
71
									($itemMap.get($hdisModel.getCatalogId()).getCatalogItemId())
28754 tejbeer 72
			    			 </td>
33966 aman.kumar 73
								<td>$hdisModel.getQty()</td>
74
								<td>$hdisModel.getCreateTimestamp().format($dateTimeFormatter)</td>
75
 
76
								<td>
77
									<button class="btn btn-primary remove-hdi-model" data-requestid="$hdisModel.getId()"
78
											type="button">Remove
79
									</button>
80
								</td>
32457 jai.hind 81
			    		   </tr>
28754 tejbeer 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
 
94
 </section>
95