Rev 32457 | Blame | Compare with Previous | Last modification | View Log | RSS feed
<script>$(function() {getItemAheadOptions($("#item-search-text"), false, function(selectedItem) {catalogItemId = selectedItem.catalogId;console.log(catalogItemId);});});</script><section class="wrapper"><div class="row"><div class="col-lg-12"><h3 class="page-header"><i class="icon_document_alt"></i>Add High Demand Items</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>High Demand Items</li></ol></div></div><div class = "row"><div class="col-lg-3"><label>Item</label><input type="text" class="typeahead form-control"id="item-search-text" name="Item"data-provide="typeahead" autocomplete="off" value=""style="width: 300px;" placeholder="Search for product..." /></div><div class="col-lg-3"><label>Item</label><input type="text" id="item-qty" class="typeahead form-control" name="item-qty" value="" style="width: 300px;" placeholder="Item Qty" /></div><div class="col-lg-2"><button class="btn btn-primary add-high-demand-item" style = "margin-top:25px" type="button">Submit</button></div></div><br><div id="hdi-table"><div class="row"><div class="col-lg-5"><table class="table table-striped table-advance table-hover"><tbody><tr><th>Item Name</th><th>Quantity </th><th>Created</th><th>Action</th></tr>#if(!$hdis.isEmpty())#foreach( $hdisModel in $hdis )<tr class="hdi-info" data="$hdisModel.getId()"><td>$itemMap.get($hdisModel.getCatalogId()).getBrand()$itemMap.get($hdisModel.getCatalogId()).getModelName()$itemMap.get($hdisModel.getCatalogId()).getModelNumber()($itemMap.get($hdisModel.getCatalogId()).getCatalogItemId())</td><td>$hdisModel.getQty()</td><td>$hdisModel.getCreateTimestamp().format($dateTimeFormatter)</td><td><button class="btn btn-primary remove-hdi-model" data-requestid="$hdisModel.getId()"type="button">Remove</button></td></tr>#end#else<tr><td colspan="12" style="text-align:center;">NO MATCHING DATA FOUND FOR CRITERIA</td></tr>#end</tbody></table></div></div></div></section>