Subversion Repositories SmartDukaan

Rev

Rev 26498 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
26493 tejbeer 1
 
2
 <style>
3
 .h5m{
4
  background: #f3f3f3;
5
  margin: 0px;
6
  padding: 10px;
7
}
8
 
9
table, th, td {
10
  border: 1px solid black;
11
  border-collapse: collapse;
12
}
13
 
14
 </style>
15
 
16
 
17
 <script type="text/javascript">
18
$(function(){
19
 	getItemAheadOptions($("#typeaheadcampareitem"),function(selectedItem){
20
 	campareItemCatalogId = selectedItem.catalogId;
21
 
22
	console.log(campareItemCatalogId);
23
	});
24
});
25
</script>
26
 
27
 
28
 
29
 <div class="row">
30
  <div class="col-lg-8">
31
  <div class="col-lg-3">
32
   <img src="$cp.getDefaultImageUrl()" alt="" height=300px;>
33
  </div>
34
  <div class="col-lg-6">
35
   <h4> Highlights </h4>
36
     #foreach($keyspec in $cp.getKeySpecs())
37
      <div>$keyspec</div>
38
    #end
39
 
40
    <h4> Package Contents </h4>
41
	 #foreach($pContents in $cp.getPackageContents())
42
	  <div>$pContents</div>
43
	#end
44
 
45
	<div class = "row" style="margin-bottom:15px;">
46
	<div class="col-lg-2">
47
	   <input class="btn btn-primary campare-with" type="submit" value="Compare With">
48
	 </div>
49
	 </div>
50
	<div class = "row" id = "campareItem">
51
	   <div  class="col-lg-6 form-group">
52
		<input placeholder="Items" type="text" class="typeahead form-control" id="typeaheadcampareitem" name="Item" data-provide="typeahead" autocomplete="off">
53
	  </div>
54
 
55
	  <div class="col-lg-2">
56
	   <input class="btn btn-primary product-compare-info" type="submit" value="Submit">	
57
	 </div>
58
 
59
	</div>
60
    </div>
61
    </div>
62
   </div>    
63
  <div class="row">
64
  <div class="col-lg-6">		
65
 
66
 
67
 
68
   <h4 class="h4m">Detailed Specification</h4>
69
	 #foreach($x in $cp.getDetailedSpecs())
70
	   <div style="border:1px solid #f3f3f3;margin-bottom:15px;">
71
	   <h5 class="h5m">$x.getTitle()</h5>
72
        #foreach($xx in $x.getSpecs())   
73
	         <table style="width:100%">
74
	          <tr>
75
	          <td style="width:35%;padding:6px;line-height:15px">$xx.getName()</td>
76
	          <td>
77
			    #foreach($xxx in $xx.getValues())  
78
			    <span>$xxx</span>
79
		         #end
80
              </td>
81
              </tr>
82
            </table>
83
         #end
84
      </div>
85
    #end
86
  </div>
87
 </div>