Rev 24203 | Rev 27583 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<style>.table-striped > tbody > tr:nth-child(odd) > td{background: white;background-color: white;}.table-striped > tbody > tr:nth-child(even) > td{background: white;background-color:white;}.table-striped > tbody > tr:hover > td,.table-striped > tbody > tr:hover {background-color: #e98c8f;color:white;}.btn:hover{color: grey;text-decoration: none;}.btn-primary:hover{color: grey;text-decoration: none;}.add-to-bag{cursor:pointer;}modal-dialog.modal-lg{left:10%;right:auto;width:80%;}.modal-content{background : white;}.modelHeaderCustom{font-size:14px;font-weight:bold;}hr{background-color:#007aff;border:none;height:1px;background:#007aff;}</style><section class="wrapper"><div class="row"><div class="col-lg-12"><h3 class="page-header"><i class="icon_genius"></i>CATALOG</h3><ol class="breadcrumb"><li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li><li><i class="icon_genius"></i>CATALOG</li></ol></div></div><div id="catalog-search"><div class="row"><div class="col-lg-12"><div class="col-md-3 col-sm-3 col-xs-12 form-group pull-right top_search"><div class="input-group"><input type="text" class="form-control" id="catalog-search-text" placeholder="Search for product..." value="$searchTerm" /><span class="input-group-btn"><button class="btn btn-primary submit" id="catalog-search-button" type="button">Go!</button></span></div></div></div></div></div><div id="catalog-table"><div class="row"><div class="col-lg-12"><table class="table table-striped table-advance table-hover"><tbody><tr><th>Item Code</th><th>Brand</th><th>Model Name</th><th>Model Number</th><th>Color</th><th>MOP</th><th>Availability</th></tr>#if(!$currentInventorySnapshot.isEmpty())#foreach( $inventorySnapshot in $currentInventorySnapshot )<tr data="$inventorySnapshot.getItemId()" class="add-to-bag" data-toggle="modal" data-target="#bagModel"><td>$inventorySnapshot.getItemId()</td><td>$inventorySnapshot.getItem().getBrand()</td><td>$inventorySnapshot.getItem().getModelName()</td><td>$inventorySnapshot.getItem().getModelNumber()</td><td>$inventorySnapshot.getItem().getColor()</td><td>$mopPriceMap.get($inventorySnapshot.getItemId()).getPrice()</td><td>$inventorySnapshot.getAvailability()</td></tr>#end#else<tr><td colspan="5" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td></tr>#end</tbody></table></div></div></div>#if(!$currentInventorySnapshot.isEmpty())<div class="row" id="catalog-paginated"><div class="col-lg-9"><p>Showing <span class="start">$start</span> to <span class="end">$end</span> of <span class="size">$size</span> items</p></div><div class="col-lg-3" style="text-align:right;"><div class="btn-group" style="width:40%"><button class="btn btn-primary previous" disabled="disabled" style="width:100%">Previous</button></div><div class="btn-group" style="width:40%">#if($end >= $size)<button class="btn btn-primary next" style="width:100%" disabled="disabled">Next</button>#else<button class="btn btn-primary next" style="width:100%">Next</button>#end</div></div></div>#end</section><div id="bagModel" class="modal fade" role="dialog"><div class="modal-dialog modal-md"><!-- Modal content--><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal">×</button><h4 class="modal-title">Add Item To Bag</h4></div><div class="modal-body" style="min-height:200px"><div id="catalogModalBody"><input type="hidden" class="itemId" /><input type="hidden" class="availability" /><h4 class="bagModalProductInfo modelHeaderCustom">Product Details : <span></span></h4><h4 class="bagModalAvailability modelHeaderCustom">Availability : <span></span></h4><h4 class="bagModalEarlyImeis modelHeaderCustom">Imeis to bill: <span></span></h4><h4 class="bagModalQuantity modelHeaderCustom">Enter Quantity<span><input type="number" min="1" class="form-control quantity"></input></span></h4><hr/><span><button type="submit" id="addToBagButton" class="btn btn-primary">Submit!</button></span></div></div></div></div></div><script type="text/javascript">hasGift = $hasGift;</script>