kde-playground/kdepim/kaddressbook/viewertemplates/contact_embedded.html
2015-04-14 21:49:29 +00:00

184 lines
5.6 KiB
HTML

<div align="center">
<table cellpadding="3" cellspacing="0">
<tr>
<td align="right" valign="top" width="30%" rowspan="3">
<img src="contact_photo" width="100" vspace="1">
</td>
<td align="left" width="70%" colspan="2"><font size="+2" ><b>{{ contact.name }}</b></font></td>
</tr>
<tr>
<td align="left" colspan="2">{{ contact.job }}</td>
</tr>
<tr>
<td align="left" colspan="2">{{ contact.organization }}</td>
</tr>
{% if contact.birthday %}
{% with contact.birthdayi18n as title %}
{% if contact.birthdayage %}
{% with contact.birthdayage|safe as value %}
{% include "contact_row.html" %}
{% endwith %}
{% else %}
{% with contact.birthday|safe as value %}
{% include "contact_row.html" %}
{% endwith %}
{% endif %}
{% endwith %}
{% endif %}
{% for phoneNumber in contact.phoneNumbers %}
{% if phoneNumber.smsLink %}
{% with phoneNumber.type as title %}
{% with phoneNumber.numberLink|safe as value %}
{% with phoneNumber.smsLink|safe as value2 %}
{% include "contact_row.html" %}
{% endwith %}
{% endwith %}
{% endwith %}
{% else %}
{% with phoneNumber.type as title %}
{% with phoneNumber.numberLink|safe as value %}
{% include "contact_row.html" %}
{% endwith %}
{% endwith %}
{% endif %}
{% endfor %}
{% for email in contact.emails %}
{% with contact.emailsi18n as title %}
{% with email|safe as value %}
{% include "contact_row.html" %}
{% endwith %}
{% endwith %}
{% endfor %}
{% for imAddress in contact.imAddresses %}
{% with imAddress.type as title %}
{% with imAddress.imAddress|safe as value %}
{% with imAddress.imIcon|safe as value2 %}
{% include "contact_row.html" %}
{% endwith %}
{% endwith %}
{% endwith %}
{% endfor %}
{% if contact.website %}
{% with contact.websitei18n as title %}
{% with contact.website|safe as value %}
{% include "contact_row.html" %}
{% endwith %}
{% endwith %}
{% endif %}
{% if contact.blogUrl %}
{% with "Blog Feed" as title %}
{% with contact.blogUrl|safe as value %}
{% include "contact_row.html" %}
{% endwith %}
{% endwith %}
{% endif %}
{% for address in contact.addresses %}
{% with address.type as title %}
{% with address.formattedAddressLink|safe as value %}
{% with address.formattedAddressIcon|safe as value2 %}
{% include "contact_row.html" %}
{% endwith %}
{% endwith %}
{% endwith %}
{% endfor %}
{% if contact.profession %}
{% with contact.Professioni18n as title %}
{% with contact.profession as value %}
{% include "contact_row.html" %}
{% endwith %}
{% endwith %}
{% endif %}
{% if contact.department %}
{% with contact.departmenti18n as title %}
{% with contact.department as value %}
{% include "contact_row.html" %}
{% endwith %}
{% endwith %}
{% endif %}
{% if contact.office %}
{% with contact.officei18n as title %}
{% with contact.office as value %}
{% include "contact_row.html" %}
{% endwith %}
{% endwith %}
{% endif %}
{% if contact.manager %}
{% with contact.manageri18n as title %}
{% with contact.manager as value %}
{% include "contact_row.html" %}
{% endwith %}
{% endwith %}
{% endif %}
{% if contact.assistant %}
{% with contact.assistanti18n as title %}
{% with contact.assistant as value %}
{% include "contact_row.html" %}
{% endwith %}
{% endwith %}
{% endif %}
{% if contact.spouse %}
{% with contact.spousei18n as title %}
{% with contact.spouse as value %}
{% include "contact_row.html" %}
{% endwith %}
{% endwith %}
{% endif %}
{% if contact.anniversary %}
{% with contact.anniversaryi18n as title %}
{% with contact.anniversary as value %}
{% include "contact_row.html" %}
{% endwith %}
{% endwith %}
{% endif %}
{% for customField in contact.customFieldsUrl %}
{% with customField.title as title %}
{% with customField.value|safe as value %}
{% include "contact_row.html" %}
{% endwith %}
{% endwith %}
{% endfor %}
{% for customField in contact.customFields %}
{% with customField.title as title %}
{% with customField.value as value %}
{% include "contact_row.html" %}
{% endwith %}
{% endwith %}
{% endfor %}
{% if contact.addressBookName %}
{% with contact.addressBookNamei18n as title %}
{% with contact.addressBookName as value %}
{% include "contact_row.html" %}
{% endwith %}
{% endwith %}
{% endif %}
{% if contact.note %}
{% with contact.notei18n as title %}
{% with contact.note|safe as value %}
{% include "contact_row.html" %}
{% endwith %}
{% endwith %}
{% endif %}
</table>
{% if contact.hasqrcode %}
<p align="center">
<img src="datamatrix" vspace="1">
<img src="qrcode" vspace="1">
</p>
{% endif %}
</div>