Rev 34333 | 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>Hid Allocation</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>Hid Allocation</li></ol></div></div><div class="row col-lg-12"><div class="form-group"><table><tr>#if($isAdmin)#if($isRBM)<div style="padding: 5px 10px; margin-top: 2px"class="col-lg-2 form-group"><select class="form-control input-sm" id="fofo-users" name="Item"placeholder="Partners"><option value="" disabled selected>Partners</option>#foreach($fofoId in $customRetailersMap.keySet())<option value="$fofoId"data-email="$customRetailersMap.get($fofoId).getEmail()">$customRetailersMap.get($fofoId).getBusinessName()</option>#end</select></div>#else<td style="padding: 5px 10px;"><input placeholder="Enter Partner Name" type="text"class="typeahead form-control"id="typeaheadpartner"name="Item" data-provide="typeahead" autocomplete="off"><input id="partnerId" type="hidden"></td>#end<td style="padding: 5px 10px;"><input class="btn btn-primary partner-hid-allocation"type="button"value="Submit"></td>#end</tr></table></div></div><div class="hid-allocation-conatiner"></div></section><script>$(document).ready(function () {$('#fofo-users').multiselect({includeSelectAllOption: true,maxHeight: 200,multiple: true,buttonWidth: '180px',numberDisplayed: 1,nonSelectedText: 'Users',nSelectedText: ' - Users Selected',allSelectedText: 'All Users Selected',enableFiltering: true,enableCaseInsensitiveFiltering: true});});</script>#if($isAdmin)<script type="text/javascript">$(function () {getPartnerAheadOptions($("#typeaheadpartner"), function (selectedPartner) {partnerId = selectedPartner.partnerId;console.log(partnerId);});});$(function () {$('#fofo-users').on('change', function () {var selectedFofoId = $(this).val();if (selectedFofoId) {partnerId = selectedFofoId;console.log("Partner ID set to:", partnerId);} else {alert("Please select a valid Partner ID.");}});});</script>#else<script>let isClicked = false;setTimeout(function () {if (!isClicked) {partnerHidAllocationList();isClicked = true; // Set the flag to true to prevent further clicksconsole.log('Button clicked once.');}}, 500); // Adjust the delay as necessary</script>#end