Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
26493 tejbeer 1
 <section class="wrapper">
2
	<div class="row">
3
		<div class="col-lg-12">
26509 amit.gupta 4
			<h3 class="page-header"><i class="icon_document_alt"></i>Compare Products</h3>
26493 tejbeer 5
			<ol class="breadcrumb">
6
				<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
26509 amit.gupta 7
				<li><i class="icon_document_alt"></i>Compare Products</li>						  	
26493 tejbeer 8
			</ol>
26509 amit.gupta 9
		   <div  class="col-lg-2 form-group">
10
			<input placeholder="Add to Compare" type="text" class="typeahead form-control addtocompare" name="Item" data-provide="typeahead" autocomplete="off">
11
		  </div>
12
		  <div class="col-lg-1">
26510 amit.gupta 13
	   		<button class="btn btn-primary product-compare-info">Add to Compare</button>	
26509 amit.gupta 14
	 	</div>
26493 tejbeer 15
		</div>
16
	</div>
17
 
18
 
26509 amit.gupta 19
<div class="row" style="width:1600px;margin:auto">
20
	<div class="col-lg-11">		    		
21
	<table style="width:100%" class="table table-bordered">
22
		<tr>
23
	 		<th></th>
24
	 		#foreach($cp in $cps)
25
	 			<th>
26
	 				<div class="card"">
27
					  <div class="card-body">
28
						  <div class="col-lg-6 input-group"> 
26510 amit.gupta 29
						  	<input class="form-control typeahed addtocompare" placeholder="Edit Compare"  data-provide="typeahead" autocomplete="off"> 
26509 amit.gupta 30
						  	<span class="input-group-btn"> 
26510 amit.gupta 31
						  		<button class="btn btn-default product-compare-info" type="button">Compare!</button>
26509 amit.gupta 32
						  	</span> 
33
						  </div> 
34
						  <img style="width:180px" src="${cp.getDefaultImageUrl()}" class="card-img-top">
35
						  <h4 class="card-text">$cp.getName()</h4>
36
					  </div>
37
				</th>
38
	 		#end
39
		</tr>
40
	#foreach($x in $cps.get(0).getDetailedSpecs())
26499 amit.gupta 41
	    #set( $colSize = $cps.size()+1 )
26509 amit.gupta 42
	   	<tr class="info"><th colspan="$colSize">$x.getTitle()</th></tr>
26493 tejbeer 43
        #foreach($xx in $x.getSpecs())   
26509 amit.gupta 44
	    <tr>
45
	    	<th style="width:20%">$xx.getName()</th>
26500 amit.gupta 46
	        #foreach($map in $entityList)
26509 amit.gupta 47
	        #if($map.containsKey("$x.getTitle()$xx.getName()"))   
26496 amit.gupta 48
	          <td><span>$map.get("$x.getTitle()$xx.getName()")</span></td>
26500 amit.gupta 49
	      	#else
50
	          <td><span> - </span></td>
26496 amit.gupta 51
	        #end
26509 amit.gupta 52
	        #end
53
     	</tr>
54
	    #end
26493 tejbeer 55
    #end
26509 amit.gupta 56
	</table>
26493 tejbeer 57
  </div>
58
 </div>
59
 
60
 
26509 amit.gupta 61
 </section>
62
 
63
<script type="text/javascript">
64
$(function(){
26510 amit.gupta 65
 	getEntityAheadOptions($("input.addtocompare"),function(selectedItem){
26509 amit.gupta 66
 		debugger;
67
 		compareCatalogId = selectedItem.catalogId_i;
68
	});
69
});
70
</script>