Rev 26501 | Rev 26510 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<section class="wrapper"><div class="row"><div class="col-lg-12"><h3 class="page-header"><i class="icon_document_alt"></i>Compare Products</h3><ol class="breadcrumb"><li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li><li><i class="icon_document_alt"></i>Compare Products</li></ol><div class="col-lg-2 form-group"><input placeholder="Add to Compare" type="text" class="typeahead form-control addtocompare" name="Item" data-provide="typeahead" autocomplete="off"></div><div class="col-lg-1"><input class="btn btn-primary product-compare-info" type="submit" value="Submit"></div></div></div><div class="row" style="width:1600px;margin:auto"><div class="col-lg-11"><table style="width:100%" class="table table-bordered"><tr><th></th>#foreach($cp in $cps)<th><div class="card""><div class="card-body"><div class="col-lg-6 input-group"><input class="form-control addtocompare addtocompare" placeholder="Edit Compare" data-provide="typeahead" autocomplete="off"><span class="input-group-btn"><button class="btn btn-default" type="button">Go!</button></span></div><img style="width:180px" src="${cp.getDefaultImageUrl()}" class="card-img-top"><h4 class="card-text">$cp.getName()</h4></div></th>#end</tr>#foreach($x in $cps.get(0).getDetailedSpecs())#set( $colSize = $cps.size()+1 )<tr class="info"><th colspan="$colSize">$x.getTitle()</th></tr>#foreach($xx in $x.getSpecs())<tr><th style="width:20%">$xx.getName()</th>#foreach($map in $entityList)#if($map.containsKey("$x.getTitle()$xx.getName()"))<td><span>$map.get("$x.getTitle()$xx.getName()")</span></td>#else<td><span> - </span></td>#end#end</tr>#end#end</table></div></div></section><script type="text/javascript">$(function(){getEntityAheadOptions($("div.addtocompare"),function(selectedItem){debugger;compareCatalogId = selectedItem.catalogId_i;});});</script>