Subversion Repositories SmartDukaan

Rev

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