(OFBIZ-4106) As explained on dev ML, I prefers to remove the possibility of creating "Tax Identifications and Exemptions". Because users would actually need to have the ACCOUNTING_CREATE or ACCOUNTING_ADMIN permissions to do so (or higher admin permissions) and opening the accounting (or total) admin right to a customer seems not secure to me. Moreover the same exists in party and it needs admin rights in both places, so does not make sense in ecommerce IMO. Sharan : The only case I can think of is that a customer may want to manage their own tax info. For example if I know my VAT number or Tax number - do I add it to my profile, or do I have to wait for it be verified and completed by the accounting administrator? Generally I think companies would want an accounting administrator to take control of this type of tax and exemption information (rather than leave it up to the customer themselves) as they will need to be responsible for it and report on it to their tax authorities so they need to make sure it is correct. Thanks: Michał Cukierman for report and Sharan for functional confirmation git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1764158 13f79535-47bb-0310-9956-ffa450edef68
596 lines
33 KiB
Plaintext
596 lines
33 KiB
Plaintext
<#--
|
|
Licensed to the Apache Software Foundation (ASF) under one
|
|
or more contributor license agreements. See the NOTICE file
|
|
distributed with this work for additional information
|
|
regarding copyright ownership. The ASF licenses this file
|
|
to you under the Apache License, Version 2.0 (the
|
|
"License"); you may not use this file except in compliance
|
|
with the License. You may obtain a copy of the License at
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
Unless required by applicable law or agreed to in writing,
|
|
software distributed under the License is distributed on an
|
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
KIND, either express or implied. See the License for the
|
|
specific language governing permissions and limitations
|
|
under the License.
|
|
-->
|
|
|
|
<#if party??>
|
|
<#-- Main Heading -->
|
|
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td>
|
|
<h2>${uiLabelMap.PartyTheProfileOf}
|
|
<#if person??>
|
|
${person.personalTitle!}
|
|
${person.firstName!}
|
|
${person.middleName!}
|
|
${person.lastName!}
|
|
${person.suffix!}
|
|
<#else>
|
|
"${uiLabelMap.PartyNewUser}"
|
|
</#if>
|
|
</h2>
|
|
</td>
|
|
<td align="right">
|
|
<#if showOld>
|
|
<a href="<@ofbizUrl>viewprofile</@ofbizUrl>" class="button">${uiLabelMap.PartyHideOld}</a>
|
|
<#else>
|
|
<a href="<@ofbizUrl>viewprofile?SHOW_OLD=true</@ofbizUrl>" class="button">${uiLabelMap.PartyShowOld}</a>
|
|
</#if>
|
|
<#if (productStore.enableDigProdUpload)! == "Y">
|
|
<a href="<@ofbizUrl>digitalproductlist</@ofbizUrl>" class="button">${uiLabelMap.EcommerceDigitalProductUpload}</a>
|
|
</#if>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<div class="screenlet">
|
|
<div class="boxlink">
|
|
<a href="<@ofbizUrl>editperson</@ofbizUrl>" class="submenutextright">
|
|
<#if person??>${uiLabelMap.CommonUpdate}<#else>${uiLabelMap.CommonCreate}</#if></a>
|
|
</div>
|
|
<h3>${uiLabelMap.PartyPersonalInformation}</h3>
|
|
<div class="screenlet-body">
|
|
<#if person??>
|
|
<div>
|
|
<table width="100%" border="0" cellpadding="0" cellspacing="0">
|
|
<tr>
|
|
<td align="right">${uiLabelMap.PartyName}</td>
|
|
<td>
|
|
${person.personalTitle!}
|
|
${person.firstName!}
|
|
${person.middleName!}
|
|
${person.lastName!}
|
|
${person.suffix!}
|
|
</td>
|
|
</tr>
|
|
<#if person.nickname?has_content><tr><td align="right">${uiLabelMap.PartyNickName}</td><td>${person.nickname}</td></tr></#if>
|
|
<#if person.gender?has_content><tr><td align="right">${uiLabelMap.PartyGender}</td><td>${person.gender}</td></tr></#if>
|
|
<#if person.birthDate??><tr><td align="right">${uiLabelMap.PartyBirthDate}</td><td>${person.birthDate.toString()}</td></tr></#if>
|
|
<#if person.height??><tr><td align="right">${uiLabelMap.PartyHeight}</td><td>${person.height}</td></tr></#if>
|
|
<#if person.weight??><tr><td align="right">${uiLabelMap.PartyWeight}</td><td>${person.weight}</td></tr></#if>
|
|
<#if person.mothersMaidenName?has_content><tr><td align="right">${uiLabelMap.PartyMaidenName}</td><td>${person.mothersMaidenName}</td></tr></#if>
|
|
<#if person.maritalStatus?has_content><tr><td align="right">${uiLabelMap.PartyMaritalStatus}</td><td>${person.maritalStatus}</td></tr></#if>
|
|
<#if person.socialSecurityNumber?has_content><tr><td align="right">${uiLabelMap.PartySocialSecurityNumber}</td><td>${person.socialSecurityNumber}</td></tr></#if>
|
|
<#if person.passportNumber?has_content><tr><td align="right">${uiLabelMap.PartyPassportNumber}</td><td>${person.passportNumber}</td></tr></#if>
|
|
<#if person.passportExpireDate??><tr><td align="right">${uiLabelMap.PartyPassportExpireDate}</td><td>${person.passportExpireDate.toString()}</td></tr></#if>
|
|
<#if person.totalYearsWorkExperience??><tr><td align="right">${uiLabelMap.PartyYearsWork}</td><td>${person.totalYearsWorkExperience}</td></tr></#if>
|
|
<#if person.comments?has_content><tr><td align="right">${uiLabelMap.CommonComments}</td><td>${person.comments}</td></tr></#if>
|
|
</table>
|
|
</div>
|
|
<#else>
|
|
<label>${uiLabelMap.PartyPersonalInformationNotFound}</label>
|
|
</#if>
|
|
</div>
|
|
</div>
|
|
|
|
<#-- ============================================================= -->
|
|
<#if monthsToInclude?? && totalSubRemainingAmount?? && totalOrders??>
|
|
<div class="screenlet">
|
|
<h3>${uiLabelMap.EcommerceLoyaltyPoints}</h3>
|
|
<div class="screenlet-body">
|
|
<label>${uiLabelMap.EcommerceYouHave} ${totalSubRemainingAmount} ${uiLabelMap.EcommercePointsFrom} ${totalOrders} ${uiLabelMap.EcommerceOrderInLast} ${monthsToInclude} ${uiLabelMap.EcommerceMonths}</label>
|
|
</div>
|
|
</div>
|
|
</#if>
|
|
|
|
<#-- ============================================================= -->
|
|
<div class="screenlet">
|
|
<div class="boxlink">
|
|
<a href="<@ofbizUrl>editcontactmech</@ofbizUrl>" class="submenutextright">${uiLabelMap.CommonCreateNew}</a>
|
|
</div>
|
|
<h3>${uiLabelMap.PartyContactInformation}</h3>
|
|
<div class="screenlet-body">
|
|
<#if partyContactMechValueMaps?has_content>
|
|
<table width="100%" border="0" cellpadding="0">
|
|
<tr valign="bottom">
|
|
<th>${uiLabelMap.PartyContactType}</th>
|
|
<th></th>
|
|
<th>${uiLabelMap.CommonInformation}</th>
|
|
<th colspan="2">${uiLabelMap.PartySolicitingOk}?</th>
|
|
<th></th>
|
|
<th></th>
|
|
</tr>
|
|
<#list partyContactMechValueMaps as partyContactMechValueMap>
|
|
<#assign contactMech = partyContactMechValueMap.contactMech! />
|
|
<#assign contactMechType = partyContactMechValueMap.contactMechType! />
|
|
<#assign partyContactMech = partyContactMechValueMap.partyContactMech! />
|
|
<tr><td colspan="7"></td></tr>
|
|
<tr>
|
|
<td align="right" valign="top">
|
|
${contactMechType.get("description",locale)}
|
|
</td>
|
|
<td> </td>
|
|
<td valign="top">
|
|
<#list partyContactMechValueMap.partyContactMechPurposes! as partyContactMechPurpose>
|
|
<#assign contactMechPurposeType = partyContactMechPurpose.getRelatedOne("ContactMechPurposeType", true) />
|
|
<div>
|
|
<#if contactMechPurposeType??>
|
|
${contactMechPurposeType.get("description",locale)}
|
|
<#if contactMechPurposeType.contactMechPurposeTypeId == "SHIPPING_LOCATION" && (profiledefs.defaultShipAddr)?default("") == contactMech.contactMechId>
|
|
<span class="buttontextdisabled">${uiLabelMap.EcommerceIsDefault}</span>
|
|
<#elseif contactMechPurposeType.contactMechPurposeTypeId == "SHIPPING_LOCATION">
|
|
<form name="defaultShippingAddressForm" method="post" action="<@ofbizUrl>setprofiledefault/viewprofile</@ofbizUrl>">
|
|
<input type="hidden" name="productStoreId" value="${productStoreId}" />
|
|
<input type="hidden" name="defaultShipAddr" value="${contactMech.contactMechId}" />
|
|
<input type="hidden" name="partyId" value="${party.partyId}" />
|
|
<input type="submit" value="${uiLabelMap.EcommerceSetDefault}" class="button" />
|
|
</form>
|
|
</#if>
|
|
<#else>
|
|
${uiLabelMap.PartyPurposeTypeNotFound}: "${partyContactMechPurpose.contactMechPurposeTypeId}"
|
|
</#if>
|
|
<#if partyContactMechPurpose.thruDate??>(${uiLabelMap.CommonExpire}:${partyContactMechPurpose.thruDate.toString()})</#if>
|
|
</div>
|
|
</#list>
|
|
<#if contactMech.contactMechTypeId! = "POSTAL_ADDRESS">
|
|
<#assign postalAddress = partyContactMechValueMap.postalAddress! />
|
|
<div>
|
|
<#if postalAddress??>
|
|
<#if postalAddress.toName?has_content>${uiLabelMap.CommonTo}: ${postalAddress.toName}<br /></#if>
|
|
<#if postalAddress.attnName?has_content>${uiLabelMap.PartyAddrAttnName}: ${postalAddress.attnName}<br /></#if>
|
|
${postalAddress.address1}<br />
|
|
<#if postalAddress.address2?has_content>${postalAddress.address2}<br /></#if>
|
|
${postalAddress.city}<#if partyContactMechValueMap.stateProvinceGeoName?has_content>, ${partyContactMechValueMap.stateProvinceGeoName}</#if> ${postalAddress.postalCode!}
|
|
<#if partyContactMechValueMap.countryGeoName?has_content><br />${partyContactMechValueMap.countryGeoName}</#if>
|
|
<#if (!postalAddress.countryGeoId?has_content || postalAddress.countryGeoId! = "USA")>
|
|
<#assign addr1 = postalAddress.address1! />
|
|
<#if (addr1.indexOf(" ") > 0)>
|
|
<#assign addressNum = addr1.substring(0, addr1.indexOf(" ")) />
|
|
<#assign addressOther = addr1.substring(addr1.indexOf(" ")+1) />
|
|
<a target="_blank" href="${uiLabelMap.CommonLookupWhitepagesAddressLink}" class="linktext">(${uiLabelMap.CommonLookupWhitepages})</a>
|
|
</#if>
|
|
</#if>
|
|
<#else>
|
|
${uiLabelMap.PartyPostalInformationNotFound}.
|
|
</#if>
|
|
</div>
|
|
<#elseif contactMech.contactMechTypeId! = "TELECOM_NUMBER">
|
|
<#assign telecomNumber = partyContactMechValueMap.telecomNumber!>
|
|
<div>
|
|
<#if telecomNumber??>
|
|
${telecomNumber.countryCode!}
|
|
<#if telecomNumber.areaCode?has_content>${telecomNumber.areaCode}-</#if>${telecomNumber.contactNumber!}
|
|
<#if partyContactMech.extension?has_content>ext ${partyContactMech.extension}</#if>
|
|
<#if (!telecomNumber.countryCode?has_content || telecomNumber.countryCode = "011")>
|
|
<a target="_blank" href="${uiLabelMap.CommonLookupAnywhoLink}" class="linktext">${uiLabelMap.CommonLookupAnywho}</a>
|
|
<a target="_blank" href="${uiLabelMap.CommonLookupWhitepagesTelNumberLink}" class="linktext">${uiLabelMap.CommonLookupWhitepages}</a>
|
|
</#if>
|
|
<#else>
|
|
${uiLabelMap.PartyPhoneNumberInfoNotFound}.
|
|
</#if>
|
|
</div>
|
|
<#elseif contactMech.contactMechTypeId! = "EMAIL_ADDRESS">
|
|
${contactMech.infoString}
|
|
<a href="mailto:${contactMech.infoString}" class="linktext">(${uiLabelMap.PartySendEmail})</a>
|
|
<#elseif contactMech.contactMechTypeId! = "WEB_ADDRESS">
|
|
<div>
|
|
${contactMech.infoString}
|
|
<#assign openAddress = contactMech.infoString! />
|
|
<#if !openAddress.startsWith("http") && !openAddress.startsWith("HTTP")><#assign openAddress = "http://" + openAddress /></#if>
|
|
<a target="_blank" href="${openAddress}" class="linktext">(${uiLabelMap.CommonOpenNewWindow})</a>
|
|
</div>
|
|
<#else>
|
|
${contactMech.infoString!}
|
|
</#if>
|
|
<div>(${uiLabelMap.CommonUpdated}: ${partyContactMech.fromDate.toString()})</div>
|
|
<#if partyContactMech.thruDate??><div>${uiLabelMap.CommonDelete}: ${partyContactMech.thruDate.toString()}</div></#if>
|
|
</td>
|
|
<td align="center" valign="top"><div>(${partyContactMech.allowSolicitation!})</div></td>
|
|
<td> </td>
|
|
<td align="right" valign="top">
|
|
<a href="<@ofbizUrl>editcontactmech?contactMechId=${contactMech.contactMechId}</@ofbizUrl>" class="button">${uiLabelMap.CommonUpdate}</a>
|
|
</td>
|
|
<td align="right" valign="top">
|
|
<form name= "deleteContactMech_${contactMech.contactMechId}" method= "post" action= "<@ofbizUrl>deleteContactMech</@ofbizUrl>">
|
|
<div>
|
|
<input type= "hidden" name= "contactMechId" value= "${contactMech.contactMechId}"/>
|
|
<a href='javascript:document.deleteContactMech_${contactMech.contactMechId}.submit()' class='button'>${uiLabelMap.CommonExpire}</a>
|
|
</div>
|
|
</form>
|
|
</td>
|
|
</tr>
|
|
</#list>
|
|
</table>
|
|
<#else>
|
|
<label>${uiLabelMap.PartyNoContactInformation}.</label><br />
|
|
</#if>
|
|
</div>
|
|
</div>
|
|
|
|
<#-- ============================================================= -->
|
|
|
|
<div class="screenlet">
|
|
<div class="boxlink">
|
|
<a href="<@ofbizUrl>editcreditcard</@ofbizUrl>" class="submenutext">${uiLabelMap.PartyCreateNewCreditCard}</a><a href="<@ofbizUrl>editgiftcard</@ofbizUrl>" class="submenutext">${uiLabelMap.PartyCreateNewGiftCard}</a><a href="<@ofbizUrl>editeftaccount</@ofbizUrl>" class="submenutextright">${uiLabelMap.PartyCreateNewEftAccount}</a>
|
|
</div>
|
|
<h3>${uiLabelMap.AccountingPaymentMethodInformation}</h3>
|
|
<div class="screenlet-body">
|
|
<table width="100%" border="0" cellpadding="1">
|
|
<tr>
|
|
<td>
|
|
<#if paymentMethodValueMaps?has_content>
|
|
<table width="100%" cellpadding="2" cellspacing="0" border="0">
|
|
<#list paymentMethodValueMaps as paymentMethodValueMap>
|
|
<#assign paymentMethod = paymentMethodValueMap.paymentMethod! />
|
|
<#assign creditCard = paymentMethodValueMap.creditCard! />
|
|
<#assign giftCard = paymentMethodValueMap.giftCard! />
|
|
<#assign eftAccount = paymentMethodValueMap.eftAccount! />
|
|
<tr>
|
|
<#if paymentMethod.paymentMethodTypeId! == "CREDIT_CARD">
|
|
<td valign="top">
|
|
<div>
|
|
${uiLabelMap.AccountingCreditCard}:
|
|
<#if creditCard.companyNameOnCard?has_content>${creditCard.companyNameOnCard} </#if>
|
|
<#if creditCard.titleOnCard?has_content>${creditCard.titleOnCard} </#if>
|
|
${creditCard.firstNameOnCard}
|
|
<#if creditCard.middleNameOnCard?has_content>${creditCard.middleNameOnCard} </#if>
|
|
${creditCard.lastNameOnCard}
|
|
<#if creditCard.suffixOnCard?has_content> ${creditCard.suffixOnCard}</#if>
|
|
${Static["org.apache.ofbiz.party.contact.ContactHelper"].formatCreditCard(creditCard)}
|
|
<#if paymentMethod.description?has_content>(${paymentMethod.description})</#if>
|
|
<#if paymentMethod.fromDate?has_content>(${uiLabelMap.CommonUpdated}: ${paymentMethod.fromDate.toString()})</#if>
|
|
<#if paymentMethod.thruDate??>(${uiLabelMap.CommonDelete}: ${paymentMethod.thruDate.toString()})</#if>
|
|
</div>
|
|
</td>
|
|
<td> </td>
|
|
<td align="right" valign="top">
|
|
<a href="<@ofbizUrl>editcreditcard?paymentMethodId=${paymentMethod.paymentMethodId}</@ofbizUrl>" class="button">
|
|
${uiLabelMap.CommonUpdate}</a>
|
|
</td>
|
|
<#elseif paymentMethod.paymentMethodTypeId! == "GIFT_CARD">
|
|
<#if giftCard?has_content && giftCard.cardNumber?has_content>
|
|
<#assign giftCardNumber = "" />
|
|
<#assign pcardNumber = giftCard.cardNumber />
|
|
<#if pcardNumber?has_content>
|
|
<#assign psize = pcardNumber?length - 4 />
|
|
<#if (0 < psize)>
|
|
<#list 0 .. psize-1 as foo>
|
|
<#assign giftCardNumber = giftCardNumber + "*" />
|
|
</#list>
|
|
<#assign giftCardNumber = giftCardNumber + pcardNumber[psize .. psize + 3] />
|
|
<#else>
|
|
<#assign giftCardNumber = pcardNumber />
|
|
</#if>
|
|
</#if>
|
|
</#if>
|
|
|
|
<td valign="top">
|
|
<div>
|
|
${uiLabelMap.AccountingGiftCard}: ${giftCardNumber}
|
|
<#if paymentMethod.description?has_content>(${paymentMethod.description})</#if>
|
|
<#if paymentMethod.fromDate?has_content>(${uiLabelMap.CommonUpdated}: ${paymentMethod.fromDate.toString()})</#if>
|
|
<#if paymentMethod.thruDate??>(${uiLabelMap.CommonDelete}: ${paymentMethod.thruDate.toString()})</#if>
|
|
</div>
|
|
</td>
|
|
<td > </td>
|
|
<td align="right" valign="top">
|
|
<a href="<@ofbizUrl>editgiftcard?paymentMethodId=${paymentMethod.paymentMethodId}</@ofbizUrl>" class="button">
|
|
${uiLabelMap.CommonUpdate}</a>
|
|
</td>
|
|
<#elseif paymentMethod.paymentMethodTypeId! == "EFT_ACCOUNT">
|
|
<td valign="top">
|
|
<div>
|
|
${uiLabelMap.AccountingEFTAccount}: ${eftAccount.nameOnAccount!} - <#if eftAccount.bankName?has_content>${uiLabelMap.AccountingBank}: ${eftAccount.bankName}</#if> <#if eftAccount.accountNumber?has_content>${uiLabelMap.AccountingAccount} #: ${eftAccount.accountNumber}</#if>
|
|
<#if paymentMethod.description?has_content>(${paymentMethod.description})</#if>
|
|
<#if paymentMethod.fromDate?has_content>(${uiLabelMap.CommonUpdated}: ${paymentMethod.fromDate.toString()})</#if>
|
|
<#if paymentMethod.thruDate??>(${uiLabelMap.CommonDelete}: ${paymentMethod.thruDate.toString()})</#if>
|
|
</div>
|
|
</td>
|
|
<td> </td>
|
|
<td align="right" valign="top">
|
|
<a href="<@ofbizUrl>editeftaccount?paymentMethodId=${paymentMethod.paymentMethodId}</@ofbizUrl>" class="button">
|
|
${uiLabelMap.CommonUpdate}</a>
|
|
</td>
|
|
</#if>
|
|
<td align="right" valign="top">
|
|
<a href="<@ofbizUrl>deletePaymentMethod/viewprofile?paymentMethodId=${paymentMethod.paymentMethodId}</@ofbizUrl>" class="button">
|
|
${uiLabelMap.CommonExpire}</a>
|
|
</td>
|
|
<td align="right" valign="top">
|
|
<#if (profiledefs.defaultPayMeth)?default("") == paymentMethod.paymentMethodId>
|
|
<span class="buttontextdisabled">${uiLabelMap.EcommerceIsDefault}</span>
|
|
<#else>
|
|
<form name="defaultPaymentMethodForm" method="post" action="<@ofbizUrl>setprofiledefault/viewprofile</@ofbizUrl>">
|
|
<input type="hidden" name="productStoreId" value="${productStoreId}" />
|
|
<input type="hidden" name="defaultPayMeth" value="${paymentMethod.paymentMethodId}" />
|
|
<input type="hidden" name="partyId" value="${party.partyId}" />
|
|
<input type="submit" value="${uiLabelMap.EcommerceSetDefault}" class="button" />
|
|
</form>
|
|
</#if>
|
|
</td>
|
|
</tr>
|
|
</#list>
|
|
</table>
|
|
<#else>
|
|
${uiLabelMap.AccountingNoPaymentMethodInformation}.
|
|
</#if>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<#-- ============================================================= -->
|
|
<div class="screenlet">
|
|
<div class="boxlink">
|
|
<a href="<@ofbizUrl>changepassword</@ofbizUrl>" class="submenutextright">${uiLabelMap.PartyChangePassword}</a>
|
|
</div>
|
|
<h3>${uiLabelMap.CommonUsername} & ${uiLabelMap.CommonPassword}</h3>
|
|
<div class="screenlet-body">
|
|
<table width="100%" border="0" cellpadding="1">
|
|
<tr>
|
|
<td align="right" valign="top">${uiLabelMap.CommonUsername}</td>
|
|
<td> </td>
|
|
<td valign="top">${userLogin.userLoginId}</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<#-- ============================================================= -->
|
|
<form name="setdefaultshipmeth" action="<@ofbizUrl>setprofiledefault/viewprofile</@ofbizUrl>" method="post">
|
|
<div>
|
|
<input type="hidden" name="productStoreId" value="${productStoreId}" />
|
|
<div class="screenlet">
|
|
<div class="boxlink">
|
|
<#if profiledefs?has_content && profiledefs.defaultShipAddr?has_content && carrierShipMethods?has_content><a href="javascript:document.setdefaultshipmeth.submit();" class="submenutextright">${uiLabelMap.EcommerceSetDefault}</a></#if>
|
|
</div>
|
|
<h3>${uiLabelMap.EcommerceDefaultShipmentMethod}</h3>
|
|
<div class="screenlet-body">
|
|
<table width="100%" border="0" cellpadding="1">
|
|
<#if profiledefs?has_content && profiledefs.defaultShipAddr?has_content && carrierShipMethods?has_content>
|
|
<#list carrierShipMethods as shipMeth>
|
|
<#assign shippingMethod = shipMeth.shipmentMethodTypeId + "@" + shipMeth.partyId />
|
|
<tr>
|
|
<td> </td>
|
|
<td>
|
|
<div><span style="white-space:;"><#if shipMeth.partyId != "_NA_">${shipMeth.partyId!} </#if>${shipMeth.get("description",locale)!}</span></div>
|
|
</td>
|
|
<td><input type="radio" name="defaultShipMeth" value="${shippingMethod}" <#if profiledefs.defaultShipMeth?default("") == shippingMethod>checked="checked"</#if> /></td>
|
|
</tr>
|
|
</#list>
|
|
<#else>
|
|
<tr><td>${uiLabelMap.EcommerceDefaultShipmentMethodMsg}</td></tr>
|
|
</#if>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
|
|
<#-- ============================================================= -->
|
|
<div class="screenlet">
|
|
<h3>${uiLabelMap.EcommerceFileManager}</h3>
|
|
<div class="screenlet-body">
|
|
<table width="100%" border="0" cellpadding="1">
|
|
<#if partyContent?has_content>
|
|
<#list partyContent as contentRole>
|
|
<#assign content = contentRole.getRelatedOne("Content", false) />
|
|
<#assign contentType = content.getRelatedOne("ContentType", true) />
|
|
<#assign mimeType = content.getRelatedOne("MimeType", true)! />
|
|
<#assign status = content.getRelatedOne("StatusItem", true) />
|
|
<tr>
|
|
<td><a href="<@ofbizUrl>img?imgId=${content.dataResourceId!}</@ofbizUrl>" class="button">${content.contentId}</a></td>
|
|
<td>${content.contentName!}</td>
|
|
<td>${(contentType.get("description",locale))!}</td>
|
|
<td>${(mimeType.description)!}</td>
|
|
<td>${(status.get("description",locale))!}</td>
|
|
<td>${contentRole.fromDate!}</td>
|
|
<td align="right">
|
|
<form name="removeContent_${contentRole.contentId}" method="post" action="removePartyAsset">
|
|
<input name="partyId" type="hidden" value="${userLogin.partyId}"/>
|
|
<input name="contentId" type="hidden" value="${contentRole.contentId}"/>
|
|
<input name="roleTypeId" type="hidden" value="${contentRole.roleTypeId}"/>
|
|
</form>
|
|
<a href="<@ofbizUrl>img?imgId=${content.dataResourceId!}</@ofbizUrl>" class="button">${uiLabelMap.CommonView}</a>
|
|
<a href="javascript:document.removeContent_${contentRole.contentId}.submit();" class="button">${uiLabelMap.CommonRemove}</a>
|
|
</td>
|
|
</tr>
|
|
</#list>
|
|
<#else>
|
|
<tr><td>${uiLabelMap.EcommerceNoFiles}</td></tr>
|
|
</#if>
|
|
</table>
|
|
<div> </div>
|
|
<label>${uiLabelMap.EcommerceUploadNewFile}</label>
|
|
<div>
|
|
<form method="post" enctype="multipart/form-data" action="<@ofbizUrl>uploadPartyContent</@ofbizUrl>">
|
|
<div>
|
|
<input type="hidden" name="partyId" value="${party.partyId}"/>
|
|
<input type="hidden" name="dataCategoryId" value="PERSONAL"/>
|
|
<input type="hidden" name="contentTypeId" value="DOCUMENT"/>
|
|
<input type="hidden" name="statusId" value="CTNT_PUBLISHED"/>
|
|
<input type="hidden" name="roleTypeId" value="OWNER"/>
|
|
<input type="file" name="uploadedFile" size="50" class="inputBox"/>
|
|
<select name="partyContentTypeId" class="selectBox">
|
|
<option value="">${uiLabelMap.PartySelectPurpose}</option>
|
|
<#list partyContentTypes as partyContentType>
|
|
<option value="${partyContentType.partyContentTypeId}">${partyContentType.get("description", locale)?default(partyContentType.partyContentTypeId)}</option>
|
|
</#list>
|
|
</select>
|
|
<select name="mimeTypeId" class="selectBox">
|
|
<option value="">${uiLabelMap.PartySelectMimeType}</option>
|
|
<#list mimeTypes as mimeType>
|
|
<option value="${mimeType.mimeTypeId}">${mimeType.get("description", locale)?default(mimeType.mimeTypeId)}</option>
|
|
</#list>
|
|
</select>
|
|
<input type="submit" value="${uiLabelMap.CommonUpload}" class="smallSubmit"/>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<#-- ============================================================= -->
|
|
<div class="screenlet">
|
|
<h3>${uiLabelMap.PartyContactLists}</h3>
|
|
<div class="screenlet-body">
|
|
<table width="100%" border="0" cellpadding="1" cellspacing="0">
|
|
<tr>
|
|
<th>${uiLabelMap.EcommerceListName}</th>
|
|
<#-- <th >${uiLabelMap.OrderListType}</th> -->
|
|
<th>${uiLabelMap.CommonFromDate}</th>
|
|
<th>${uiLabelMap.CommonThruDate}</th>
|
|
<th>${uiLabelMap.CommonStatus}</th>
|
|
<th>${uiLabelMap.CommonEmail}</th>
|
|
<th> </th>
|
|
<th> </th>
|
|
</tr>
|
|
<#list contactListPartyList as contactListParty>
|
|
<#assign contactList = contactListParty.getRelatedOne("ContactList", false)! />
|
|
<#assign statusItem = contactListParty.getRelatedOne("StatusItem", true)! />
|
|
<#assign emailAddress = contactListParty.getRelatedOne("PreferredContactMech", true)! />
|
|
<#-- <#assign contactListType = contactList.getRelatedOne("ContactListType", true)/> -->
|
|
<tr><td colspan="7"></td></tr>
|
|
<tr>
|
|
<td>${contactList.contactListName!}<#if contactList.description?has_content> - ${contactList.description}</#if></td>
|
|
<#-- <td><div>${contactListType.get("description",locale)!}</div></td> -->
|
|
<td>${contactListParty.fromDate!}</td>
|
|
<td>${contactListParty.thruDate!}</td>
|
|
<td>${(statusItem.get("description",locale))!}</td>
|
|
<td>${emailAddress.infoString!}</td>
|
|
<td> </td>
|
|
<td>
|
|
<#if (contactListParty.statusId! == "CLPT_ACCEPTED")>
|
|
<form method="post" action="<@ofbizUrl>updateContactListParty</@ofbizUrl>" name="clistRejectForm${contactListParty_index}">
|
|
<div>
|
|
<#assign productStoreId = Static["org.apache.ofbiz.product.store.ProductStoreWorker"].getProductStoreId(request) />
|
|
<input type="hidden" name="productStoreId" value="${productStoreId!}" />
|
|
<input type="hidden" name="partyId" value="${party.partyId}"/>
|
|
<input type="hidden" name="contactListId" value="${contactListParty.contactListId}"/>
|
|
<input type="hidden" name="preferredContactMechId" value="${contactListParty.preferredContactMechId}"/>
|
|
<input type="hidden" name="fromDate" value="${contactListParty.fromDate}"/>
|
|
<input type="hidden" name="statusId" value="CLPT_REJECTED"/>
|
|
<input type="submit" value="${uiLabelMap.EcommerceUnsubscribe}" class="smallSubmit"/>
|
|
</div>
|
|
</form>
|
|
<#elseif (contactListParty.statusId! == "CLPT_PENDING")>
|
|
<form method="post" action="<@ofbizUrl>updateContactListParty</@ofbizUrl>" name="clistAcceptForm${contactListParty_index}">
|
|
<div>
|
|
<input type="hidden" name="partyId" value="${party.partyId}"/>
|
|
<input type="hidden" name="contactListId" value="${contactListParty.contactListId}"/>
|
|
<input type="hidden" name="preferredContactMechId" value="${contactListParty.preferredContactMechId}"/>
|
|
<input type="hidden" name="fromDate" value="${contactListParty.fromDate}"/>
|
|
<input type="hidden" name="statusId" value="CLPT_ACCEPTED"/>
|
|
<input type="text" size="10" name="optInVerifyCode" value="" class="inputBox"/>
|
|
<input type="submit" value="${uiLabelMap.EcommerceVerifySubscription}" class="smallSubmit"/>
|
|
</div>
|
|
</form>
|
|
<#elseif (contactListParty.statusId! == "CLPT_REJECTED")>
|
|
<form method="post" action="<@ofbizUrl>updateContactListParty</@ofbizUrl>" name="clistPendForm${contactListParty_index}">
|
|
<div>
|
|
<input type="hidden" name="partyId" value="${party.partyId}"/>
|
|
<input type="hidden" name="contactListId" value="${contactListParty.contactListId}"/>
|
|
<input type="hidden" name="preferredContactMechId" value="${contactListParty.preferredContactMechId}"/>
|
|
<input type="hidden" name="fromDate" value="${contactListParty.fromDate}"/>
|
|
<input type="hidden" name="statusId" value="CLPT_PENDING"/>
|
|
<input type="submit" value="${uiLabelMap.EcommerceSubscribe}" class="smallSubmit"/>
|
|
</div>
|
|
</form>
|
|
</#if>
|
|
</td>
|
|
</tr>
|
|
</#list>
|
|
</table>
|
|
<div>
|
|
<form method="post" action="<@ofbizUrl>createContactListParty</@ofbizUrl>" name="clistPendingForm">
|
|
<div>
|
|
<input type="hidden" name="partyId" value="${party.partyId}"/>
|
|
<input type="hidden" name="statusId" value="CLPT_PENDING"/>
|
|
<span class="tableheadtext">${uiLabelMap.EcommerceNewListSubscription}: </span>
|
|
<select name="contactListId" class="selectBox">
|
|
<#list publicContactLists as publicContactList>
|
|
<#-- <#assign publicContactListType = publicContactList.getRelatedOne("ContactListType", true)> -->
|
|
<#assign publicContactMechType = publicContactList.getRelatedOne("ContactMechType", true)! />
|
|
<option value="${publicContactList.contactListId}">${publicContactList.contactListName!} <#-- ${publicContactListType.get("description",locale)} --> <#if publicContactMechType?has_content>[${publicContactMechType.get("description",locale)}]</#if></option>
|
|
</#list>
|
|
</select>
|
|
<select name="preferredContactMechId" class="selectBox">
|
|
<#-- <option></option> -->
|
|
<#list partyAndContactMechList as partyAndContactMech>
|
|
<option value="${partyAndContactMech.contactMechId}"><#if partyAndContactMech.infoString?has_content>${partyAndContactMech.infoString}<#elseif partyAndContactMech.tnContactNumber?has_content>${partyAndContactMech.tnCountryCode!}-${partyAndContactMech.tnAreaCode!}-${partyAndContactMech.tnContactNumber}<#elseif partyAndContactMech.paAddress1?has_content>${partyAndContactMech.paAddress1}, ${partyAndContactMech.paAddress2!}, ${partyAndContactMech.paCity!}, ${partyAndContactMech.paStateProvinceGeoId!}, ${partyAndContactMech.paPostalCode!}, ${partyAndContactMech.paPostalCodeExt!} ${partyAndContactMech.paCountryGeoId!}</#if></option>
|
|
</#list>
|
|
</select>
|
|
<input type="submit" value="${uiLabelMap.EcommerceSubscribe}" class="smallSubmit"/>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
<label>${uiLabelMap.EcommerceListNote}</label>
|
|
</div>
|
|
</div>
|
|
|
|
<#-- ============================================================= -->
|
|
<#if surveys?has_content>
|
|
<div class="screenlet">
|
|
<h3>${uiLabelMap.EcommerceSurveys}</h3>
|
|
<div class="screenlet-body">
|
|
<table width="100%" border="0" cellpadding="1">
|
|
<#list surveys as surveyAppl>
|
|
<#assign survey = surveyAppl.getRelatedOne("Survey", false) />
|
|
<tr>
|
|
<td> </td>
|
|
<td valign="top"><div>${survey.surveyName!} - ${survey.description!}</div></td>
|
|
<td> </td>
|
|
<td valign="top">
|
|
<#assign responses = Static["org.apache.ofbiz.product.store.ProductStoreWorker"].checkSurveyResponse(request, survey.surveyId)?default(0)>
|
|
<#if (responses < 1)>${uiLabelMap.EcommerceNotCompleted}<#else>${uiLabelMap.EcommerceCompleted}</#if>
|
|
</td>
|
|
<#if (responses == 0 || survey.allowMultiple?default("N") == "Y")>
|
|
<#assign surveyLabel = uiLabelMap.EcommerceTakeSurvey />
|
|
<#if (responses > 0 && survey.allowUpdate?default("N") == "Y")>
|
|
<#assign surveyLabel = uiLabelMap.EcommerceUpdateSurvey />
|
|
</#if>
|
|
<td align="right"><a href="<@ofbizUrl>takesurvey?productStoreSurveyId=${surveyAppl.productStoreSurveyId}</@ofbizUrl>" class="button">${surveyLabel}</a></td>
|
|
<#else>
|
|
|
|
</#if>
|
|
</tr>
|
|
</#list>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</#if>
|
|
|
|
<#-- ============================================================= -->
|
|
<#-- only 5 messages will show; edit the ViewProfile.groovy to change this number -->
|
|
${screens.render("component://ecommerce/widget/CustomerScreens.xml#messagelist-include")}
|
|
|
|
${screens.render("component://ecommerce/widget/CustomerScreens.xml#FinAccountList-include")}
|
|
|
|
<#-- Serialized Inventory Summary -->
|
|
${screens.render('component://ecommerce/widget/CustomerScreens.xml#SerializedInventorySummary')}
|
|
|
|
<#-- Subscription Summary -->
|
|
${screens.render('component://ecommerce/widget/CustomerScreens.xml#SubscriptionSummary')}
|
|
|
|
<#-- Reviews -->
|
|
${screens.render('component://ecommerce/widget/CustomerScreens.xml#showProductReviews')}
|
|
|
|
<#else>
|
|
<h3>${uiLabelMap.PartyNoPartyForCurrentUserName}: ${userLogin.userLoginId}</h3>
|
|
</#if>
|