Rev 31147 | Rev 33797 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
<script type="text/javascript">$(function () {$('input[name="expiredEndDate"]').daterangepicker(getSingleDatePicker());$('input[name="offerItemDuration"]').daterangepicker(getRangedDatePicker());});$(document).ready(function () {var dtable = $('#offer-item-table').DataTable({});$(function(){getItemAheadOptions($("#catalog-search-text"),false,function(selectedItem){currentItem = selectedItem.catalogId;console.log(currentItem);});});});</script><div class="modal-header"><button type="button" class="close" data-dismiss="modal">×</button><h4 class="modal-title">Customer Offer Item</h4></div><div class="modal-body" style="height:400px;overflow:auto;"><div class="row"><div class="form-group col-lg-3"><label for="Item">Item</label><input type="text" class="typeahead form-control" id="catalog-search-text" name="Item" data-provide="typeahead" autocomplete="off" value="" style ="width: 200px;" placeholder="Search for product..."/></div><div class="form-group col-lg-2"><label for="offerItemDuration">Duration</label><input placeholder="Set Duration" name="offerItemDuration" id="offerItemDuration" name="dateRange"type="text" value="" class="form-control input-sm"></div><div class="form-group col-lg-2"><label for="schemePayout">Scheme Payout</label><input placeholder="Scheme Payout" name="schemePayout" id="schemePayout"type="text" value="" class="form-control input-sm"></div><div class="form-group col-lg-2"><label for="dealerPayout">Dealer Payout</label><input placeholder="Dealer Payout" name="dealerPayout" id="dealerPayout"type="text" value="" class="form-control input-sm"></div><div class="form-groupcol-lg-2" style="margin-top:20px"><input type="button" class="btn btn-default addOfferItem" data-offerid="$offerId"value="Create"></div></div><div class = "row"><div class="col-lg-12"><table class="table table-border table-condensed table-bordered" id="offer-item-table" style="width:100%"><thead style="background:#F5F5F5;"><tr><th>Id</th><th>Catalog Id</th><th>Item Name</th><th>Scheme Payout</th><th>Dealer Payout</th><th>Start Date</th><th>Expired Date</th><th>Mark Expired</th></tr></thead><tbody>#foreach($coi in $customerOfferItems )<tr>#parse("customer-offer-item-index.vm")</tr>#end</tbody></table></div></div></div><div class="modal-footer"><button type="button" data-dismiss="modal" class="btn btn-default view-close">Close</button></div>