Rev 27585 | Rev 31986 | 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><!--Training Video --><li><a href="#videoModal" class="btn btn-danger" data-toggle="modal" data-src="yewIb8kBqnQ"><spanclass="glyphicon glyphicon-play-circle"></span> Play Video</a></li></ol></div></div><div class="row" style="width:1;margin:auto"><div class="col-lg-11"><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"><button class="btn btn-primary product-compare-info">Add to Compare</button></div><div style="width:100%"><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-8 input-group"><input class="form-control typeahed addtocompare" placeholder="Edit Compare" data-provide="typeahead" autocomplete="off"><span class="input-group-btn"><button class="btn btn-default product-compare-info" type="button">Compare!</button></span></div><img style="width:180px" src="${cp.getDefaultImageUrl()}" class="card-img-top"><h4 class="card-text">$cp.getName()</h4></div><div class="Price currency"><h1 class="card-text">Mop: <span class = "currency">$cp.getPrice()</span></h1><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></div></section><script type="text/javascript">$(function(){getEntityAheadOptions($("input.addtocompare"),function(selectedItem){debugger;compareCatalogId = selectedItem.catalogId_i;});});</script>