Rev 11890 | Rev 21936 | Go to most recent revision | 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">#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