Rev 23244 | Blame | Compare with Previous | Last modification | View Log | RSS feed
#set($privateDealUser=$action.getPrivateDealUser())<div class="user-related-info" style="width:45%;float:left;">#if($privateDealUser.isIsActive())<span style="font-weight:bold;color:red;">Private Deal User</span><br/>#end<span>Name: $action.getUser().getName()</span><br/><span>Email: $action.getUser().getEmail()</span><br/><span>Communication Email: $action.getUser().getCommunicationEmail()</span><br/><br/><span>Date Of Birth:#if($action.getUser().getDateOfBirth())$action.getUser().getDateOfBirth()#elseN/A#end</span><br/><span>Phone:#if($action.getUser().isSetMobileNumber())$action.getUser().getMobileNumber()#elseN/A#end</span><br/><br/><span>Sex: $action.getUser().getSex()</span><br/><span>Trust level: $action.getUser().getTrustLevel()</span><br/>#if($action.isTrustLevelEditable())<span >Increase trust level by: </span><input userId="$action.getUserId()" type="text" value="0" id="trust-level-increase"/><input type="button" value="Increase" class="trust-level-increase"/><br />#end<br/>#set($address = $action.getPrimaryAdddress())#if($address)<span>Primary Address ($address.getName())</span><br/><span>#if($address.getLine1()) $address.getLine1(), #end#if($address.getLine2()) $address.getLine2(), #end#if($address.getLandmark()) $address.getLandmark(), #end#if($address.getCity()) $address.getCity(), #end#if($address.getState()) $address.getState(), #end#if($address.getCountry()) $address.getCountry(), #end#if($address.getPin()) $address.getPin(), #end</span><br/>#if($address.getPin()) <span>Phone : $address.getPhone()</span><br/><br/><br/> #end#end<span>Other Addresses : </span>#foreach($address in $action.getUserAddresses())#if($address.getId() != $action.getUser().getDefaultAddressId())#if($address.getName()) <span>$address.getName()</span><br/> #end<span>#if($address.getLine1()) $address.getLine1(), #end#if($address.getLine2()) $address.getLine2(), #end#if($address.getLandmark()) $address.getLandmark(), #end#if($address.getCity()) $address.getCity(), #end#if($address.getState()) $address.getState(), #end#if($address.getCountry()) $address.getCountry(), #end#if($address.getPin()) $address.getPin(), #end</span><br/>#if($address.getPin()) <span>Phone : $address.getPhone()</span><br/><br/><br/> #end#end#end</div>#if($action.canViewBulkOrderEnquiry())#set($customerId=$action.getUserId())<div class="privateDeals" style="float: right; display: block; border: 2px solid gray; min-height: 40px; min-width: 20%; padding: 10px; margin-top: 30px; background-color: lightBlue;"><h3>Private Deals</h3>#if ($privateDealUser.getUserId()==0)<span style="margin-right: 10px;">Add User : </span><input type="button" class="add-to-private-deal" userId="$customerId" value="Add User"><br><br>#end#if ($privateDealUser.getUserId()>0)#if ($privateDealUser.isIsActive())<span style="margin-right: 10px;font-weight:bold;color:green;">Current Status Active</span><br><br><span style="margin-right: 10px;">Deactivate User : </span><input type="button" class="change-private-deal-user-status" userId="$customerId" active="false" value="Update"><br><br>#if ($action.isDocumentVerified())<span style="margin-right:10px;">Retailer verified!</span><span style="margin-right:10px;">GST No - $action.getGstin()</span>#else<span style="margin-right:10px;">GST No - </span><span><input type="text name="gstin" id="gstin" value="$gstin" onClick=""></span><br><input type="button" id="verifyDoc" value="Verify Retailer" onclick="verifyDoc($action.getUserId())"/>#end<br><br><span style="margin-right: 10px;font-weight:bold;color:green;">Address Details</span><br><br><span style="margin-right:10px;">Registered Name</span><span><input type="text name="name" value="$primaryAddress.getName()" id="name"></span><br><span style="margin-right:10px;">Line 1</span><span><input type="text name="line1" value="$primaryAddress.getLine1()" id="line1"></span><br><span style="margin-right:10px;">Line 2</span><span><input type="text name="line2" value="$primaryAddress.getLine2()" id="line2"></span><br><span style="margin-right:10px;">City</span><span><input type="text name="city" value="$primaryAddress.getCity()" id="city"></span><br><span style="margin-right:10px;">Pin Code</span><span><input type="text name="pinCode" value="$primaryAddress.getPin()" id="pinCode"></span><br><span style="margin-right:10px;">State</span><span><input type="text name="state" value="$action.getPrimaryAddress().getState()" id="state"></span><br><br><input type="button" class="update-address" id="updateAddress" value="Update Address" onclick="updateAddress($action.getUserId())"/>#else<span style="margin-right: 10px;font-weight:bold;color:red;">Current Status Inactive</span><br><br><span style="margin-right: 10px;">Activate User : </span><input type="button" class="change-private-deal-user-status" userId="$customerId" active="true" value="Update">#end<br><br>#end#if ($privateDealUser.getUserId()>0)<span style="margin-right: 10px;">Reset Password : </span><input type="button" class="reset-private-deal-user-password" userId="$customerId" value="Reset Password">#end</div>#end