git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1744942 13f79535-47bb-0310-9956-ffa450edef68
143 lines
7.6 KiB
Plaintext
143 lines
7.6 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 canNotView>
|
|
<h3>${uiLabelMap.AccountingCardInfoNotBelongToYou}.</h3>
|
|
<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonGoBack}</a>
|
|
<#else>
|
|
<#if !creditCard??>
|
|
<h2>${uiLabelMap.AccountingAddNewCreditCard}</h2>
|
|
<form method="post" action="<@ofbizUrl>createCreditCard?DONE_PAGE=${donePage}</@ofbizUrl>" name="editcreditcardform">
|
|
<div>
|
|
<#else>
|
|
<h2>${uiLabelMap.AccountingEditCreditCard}</h2>
|
|
<form method="post" action="<@ofbizUrl>updateCreditCard?DONE_PAGE=${donePage}</@ofbizUrl>" name="editcreditcardform">
|
|
<div>
|
|
<input type="hidden" name="paymentMethodId" value="${paymentMethodId}" />
|
|
</#if>
|
|
<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonGoBack}</a>
|
|
<a href="javascript:document.editcreditcardform.submit()" class="button">${uiLabelMap.CommonSave}</a>
|
|
<p/>
|
|
<table width="90%" border="0" cellpadding="2" cellspacing="0">
|
|
${screens.render("component://accounting/widget/CommonScreens.xml#creditCardFields")}
|
|
<tr>
|
|
<td align="right" valign="top">${uiLabelMap.PartyBillingAddress}</td>
|
|
<td> </td>
|
|
<td>
|
|
<#-- Removed because is confusing, can add but would have to come back here with all data populated as before...
|
|
<a href="<@ofbizUrl>editcontactmech</@ofbizUrl>" class="buttontext">
|
|
[Create New Address]</a>
|
|
-->
|
|
<table width="100%" border="0" cellpadding="1">
|
|
<#assign hasCurrent = false />
|
|
<#if curPostalAddress?has_content>
|
|
<#assign hasCurrent = true />
|
|
<tr>
|
|
<td align="right" valign="top">
|
|
<input type="radio" name="contactMechId" value="${curContactMechId}" checked="checked" />
|
|
</td>
|
|
<td valign="top">
|
|
${uiLabelMap.PartyUseCurrentAddress}:
|
|
<#list curPartyContactMechPurposes as curPartyContactMechPurpose>
|
|
<#assign curContactMechPurposeType = curPartyContactMechPurpose.getRelatedOne("ContactMechPurposeType", true) />
|
|
<div>
|
|
${curContactMechPurposeType.get("description",locale)!}
|
|
<#if curPartyContactMechPurpose.thruDate??>
|
|
((${uiLabelMap.CommonExpire}:${curPartyContactMechPurpose.thruDate.toString()})
|
|
</#if>
|
|
</div>
|
|
</#list>
|
|
<div>
|
|
<#if curPostalAddress.toName??>${uiLabelMap.CommonTo}: ${curPostalAddress.toName}<br /></#if>
|
|
<#if curPostalAddress.attnName??>${uiLabelMap.PartyAddrAttnName}: ${curPostalAddress.attnName}<br /></#if>
|
|
${curPostalAddress.address1!}<br />
|
|
<#if curPostalAddress.address2??>${curPostalAddress.address2}<br /></#if>
|
|
${curPostalAddress.city}<#if curPostalAddress.stateProvinceGeoId?has_content>, ${curPostalAddress.stateProvinceGeoId}</#if> ${curPostalAddress.postalCode}
|
|
<#if curPostalAddress.countryGeoId??><br />${curPostalAddress.countryGeoId}</#if>
|
|
<div>(${uiLabelMap.CommonUpdated}: ${(curPartyContactMech.fromDate.toString())!})</div>
|
|
<#if curPartyContactMech.thruDate??><div>${uiLabelMap.CommonDelete}: ${curPartyContactMech.thruDate.toString()}</#if>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<#else>
|
|
<#-- <tr>
|
|
<td valign="top" colspan="2">
|
|
<div>${uiLabelMap.PartyBillingAddressNotSelected}</div>
|
|
</td>
|
|
</tr> -->
|
|
</#if>
|
|
<#-- is confusing
|
|
<tr>
|
|
<td valign="top" colspan="2">
|
|
<div>${uiLabelMap.EcommerceMessage3}</div>
|
|
</td>
|
|
</tr>
|
|
-->
|
|
<#list postalAddressInfos as postalAddressInfo>
|
|
<#assign contactMech = postalAddressInfo.contactMech />
|
|
<#assign partyContactMechPurposes = postalAddressInfo.partyContactMechPurposes />
|
|
<#assign postalAddress = postalAddressInfo.postalAddress />
|
|
<#assign partyContactMech = postalAddressInfo.partyContactMech />
|
|
<tr>
|
|
<td align="right" valign="top">
|
|
<input type="radio" name="contactMechId" value="${contactMech.contactMechId}" />
|
|
</td>
|
|
<td valign="middle">
|
|
<#list partyContactMechPurposes as partyContactMechPurpose>
|
|
<#assign contactMechPurposeType = partyContactMechPurpose.getRelatedOne("ContactMechPurposeType", true) />
|
|
<div>
|
|
${contactMechPurposeType.get("description",locale)!}
|
|
<#if partyContactMechPurpose.thruDate??>(${uiLabelMap.CommonExpire}:${partyContactMechPurpose.thruDate})</#if>
|
|
</div>
|
|
</#list>
|
|
<div>
|
|
<#if postalAddress.toName??>${uiLabelMap.CommonTo}: ${postalAddress.toName}<br /></#if>
|
|
<#if postalAddress.attnName??>${uiLabelMap.PartyAddrAttnName}: ${postalAddress.attnName}<br /></#if>
|
|
${postalAddress.address1!}<br />
|
|
<#if postalAddress.address2??>${postalAddress.address2}<br /></#if>
|
|
${postalAddress.city}<#if postalAddress.stateProvinceGeoId?has_content>, ${postalAddress.stateProvinceGeoId}</#if> ${postalAddress.postalCode}
|
|
<#if postalAddress.countryGeoId??><br />${postalAddress.countryGeoId}</#if>
|
|
</div>
|
|
<div>(${uiLabelMap.CommonUpdated}: ${(partyContactMech.fromDate.toString())!})</div>
|
|
<#if partyContactMech.thruDate??><div>${uiLabelMap.CommonDelete}: ${partyContactMech.thruDate.toString()}</div></#if>
|
|
</td>
|
|
</tr>
|
|
</#list>
|
|
<#if !postalAddressInfos?has_content && !curContactMech??>
|
|
<tr><td colspan="2"><div>${uiLabelMap.PartyNoContactInformation}.</div></td></tr>
|
|
</#if>
|
|
<tr>
|
|
<td align="right" valign="top">
|
|
<input type="radio" name="contactMechId" value="_NEW_" <#if !hasCurrent>checked="checked"</#if> />
|
|
</td>
|
|
<td valign="middle">
|
|
<span>${uiLabelMap.PartyCreateNewBillingAddress}.</span>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</form>
|
|
<a href="<@ofbizUrl>${donePage}</@ofbizUrl>" class="button">${uiLabelMap.CommonGoBack}</a>
|
|
<a href="javascript:document.editcreditcardform.submit()" class="button">${uiLabelMap.CommonSave}</a>
|
|
</#if>
|
|
|