Thanks Nitish Mishra for your contribution git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1818774 13f79535-47bb-0310-9956-ffa450edef68
78 lines
3.9 KiB
Plaintext
78 lines
3.9 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 fulfillContactMech?has_content>
|
|
|
|
<#if "POSTAL_ADDRESS" == fulfillContactMech.contactMechTypeId>
|
|
<#assign label = uiLabelMap.PartyAddressMailingShipping>
|
|
<#assign postalAddress = fulfillContactMech.getRelatedOne("PostalAddress", true)!>
|
|
<#elseif "EMAIL_ADDRESS" == fulfillContactMech.contactMechTypeId>
|
|
<#assign label = uiLabelMap.PartyToEmailAddress>
|
|
<#assign emailAddress = fulfillContactMech.infoString!>
|
|
<#elseif "TELECOM_NUMBER" == fulfillContactMech.contactMechTypeId>
|
|
<#assign label = uiLabelMap.PartyPhoneNumber>
|
|
<#assign telecomNumber = fulfillContactMech.getRelatedOne("TelecomNumber", true)!>
|
|
</#if>
|
|
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<strong>${uiLabelMap.PartyContactInformation}</strong>
|
|
</div>
|
|
<div class="screenlet-body">
|
|
<table class="table">
|
|
<tr>
|
|
<td>
|
|
${label?default(uiLabelMap.PartyUnknown)}
|
|
</td>
|
|
<td valign="top" width="70%">
|
|
<div>
|
|
<#if emailAddress?has_content>${emailAddress}</#if>
|
|
|
|
<#if postalAddress?has_content>
|
|
<#if postalAddress.toName?has_content><span class="label">${uiLabelMap.PartyAddrToName}</span> ${postalAddress.toName}<br /></#if>
|
|
<#if postalAddress.attnName?has_content><span class="label">${uiLabelMap.PartyAddrAttnName}</span> ${postalAddress.attnName}<br /></#if>
|
|
${postalAddress.address1!}<br />
|
|
<#if postalAddress.address2?has_content>${postalAddress.address2}<br /></#if>
|
|
${postalAddress.city!},
|
|
<#if postalAddress.stateProvinceGeoId?has_content>
|
|
<#assign stateProvince = postalAddress.getRelatedOne("StateProvinceGeo", true)>
|
|
${stateProvince.abbreviation?default(stateProvince.geoId)}
|
|
</#if>
|
|
${postalAddress.postalCode!}
|
|
<#if postalAddress.countryGeoId?has_content><br />
|
|
<#assign country = postalAddress.getRelatedOne("CountryGeo", true)>
|
|
${country.geoName?default(country.geoId)}
|
|
</#if>
|
|
</#if>
|
|
|
|
<#if telecomNumber?has_content>
|
|
${telecomNumber.countryCode!}
|
|
<#if telecomNumber.areaCode?has_content>${telecomNumber.areaCode?default("000")}-</#if>${telecomNumber.contactNumber?default("000-0000")}
|
|
<#if (telecomNumber?has_content && !telecomNumber.countryCode?has_content) || telecomNumber.countryCode = "011">
|
|
<a target="_blank" href="${uiLabelMap.CommonLookupAnywhoLink}" class="buttontext">${uiLabelMap.CommonLookupAnywho}</a>
|
|
<a target="_blank" href="${uiLabelMap.CommonLookupWhitepagesTelNumberLink}" class="buttontext">${uiLabelMap.CommonLookupWhitepages}</a>
|
|
</#if>
|
|
</#if>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</#if> |