This repository has been archived on 2023-02-21. You can view files and clone it, but cannot push or open issues or pull requests.
themis.datatypes/themis/datatypes/address_display.pt

38 lines
1.6 KiB
XML

<div lang="en"
xml:lang="en"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:metal="http://xml.zope.org/namespaces/metal"
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
i18n:domain="plone.app.textfield"
tal:attributes="id view/id">
<tal:define define="fieldName view/name">
<style type="text/css">
.address { margin-left: 2em; }
</style>
<div class="address" tal:condition="view/value">
<p>
<span tal:condition="view/value/title">
<span tal:replace="view/value/title"/><br/></span>
<span tal:condition="view/value/street">
<span tal:replace="view/value/street"/><br/></span>
<span tal:condition="view/value/zipcode"
tal:replace="view/value/zipcode"/>
<span tal:condition="view/value/city">
<span tal:replace="view/value/city"/><br/></span>
<span tal:condition="view/value/phone1">
<span tal:replace="view/value/phone1"/><br/></span>
<span tal:condition="view/value/phone2">
<span tal:replace="view/value/phone2"/><br/></span>
<span tal:condition="view/value/fax">
<span tal:replace="view/value/fax"/><br/></span>
<a tal:condition="view/value/email"
tal:attributes="href string:mailto:${view/value/email}"
tal:content="view/value/email">email</a>
</p>
</div>
</tal:define>
</div>