Rev 33795 | 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>Customer Offer</h3><ol class="breadcrumb"><li><i class="fa fa-home"></i><ahref="${rc.contextPath}/dashboard">Home</a></li><li><i class="icon_document_alt"></i>Customer Offer</li></ol></div></div><div class="row"><div class="form-group col-lg-3"><label for="offerName">Offer Name</label><input id="offername" placeholder="Offer Name" type="text"class="form-control input-sm"/></div><div class="form-group col-lg-2"><label for="offerDuration">Duration</label><input placeholder="Set Duration" name="dateRange" id="offerDuration" name="dateRange"type="text" value="" class="form-control input-sm"></div></div><div class="row"><div class="form-group col-lg-3"><label>Warehouse Regions</label><select multiple class="criteria-warehouseregion chosen-select">#foreach ($whRegionEntry in $warehouseRegion.entrySet())<option value="$whRegionEntry.getKey()">$whRegionEntry.getValue()</option>#end</select></div><div class="form-group col-lg-6 partner"><label>Choose Partners</label><label class="checkbox-inline"><input type="checkbox" class="excludeFofoId" value=""><b>Exclude</b></label><select multiple="multiple" name="partner" id="partners"data-placeholder="Choose Franchisee" class="chosen-select">#foreach ($customRetailer in $customRetailersMap.entrySet())<option value="$customRetailer.getKey()">$customRetailer.getValue().getDisplayName()</option>#end</select></div><div class="form-groupcol-lg-2" style="margin-top:20px"><input type="button" class="btn btn-default createoffer"value="Create"></div></div><div class="col-lg-12"><table><tr><td style="padding: 5px 10px;"><div class="form-inline"><div class="input-group top_search"><input type="text" class="form-control" id="offer-item-search-text" autocomplete="off"placeholder="Search Model"#if($searchModel > 0)value="$modelName"#end/><span class="input-group-btn"><button class="btn btn-primary submit" id="offer-item-search-button" type="button">Go!</button></span></div></div></td><td style="padding: 5px 10px;"><input placeholder="Set Duration" name="customerOfferByDateRange"id="customerOfferByDateRange"type="text" value="" class="form-control input-sm"></td><td style="padding: 5px 10px;"><input class="btn btn-primary customer-offer-daterange"type="button"value="Submit"></td></tr></table><table class="table table-border table-condensed table-bordered" id="offer-customer-table" style="width:100%"><thead style="background:#F5F5F5;"><tr><th>Id</th><th>Offer Name</th><th>Duration</th><th>Partner Criteria</th><th>Download</th><th>Upload</th></tr></thead><tbody>#foreach($co in $customerOffers )<tr data-requestid="$co.getId()">#parse("customer-index-offer.vm")</tr>#end</tbody></table></div><div id="customerOfferItemdetail" class="modal" role="dialog" ><div class="modal-dialog" style="width:65%"><div class="modal-content"></div></div></div></section><script type="text/javascript">$(function () {$('input[name="dateRange"]').daterangepicker(getRangedDatePicker());$('input[name="extendEndDate"]').daterangepicker(getSingleDatePicker());$('#partners').chosen({search_contains: true});$("select.criteria-warehouseregion").chosen({no_results_text: "Oops, nothing found!"});if ($searchModel > 0) {currentItem = $searchModel;}getEntityAheadOptions($("#offer-item-search-text"), function (selectedItem) {currentItem = selectedItem.catalogId_i;console.log(selectedItem)});});$(document).ready(function () {var dtable = $('#offer-customer-table').DataTable({"scrollX": true,"scrollY": "518px",scrollCollapse: true,});});</script><script type="text/javascript">$('input[name="customerOfferByDateRange"]').daterangepicker(getStatementRanges());</script>