Changeset View
Changeset View
Standalone View
Standalone View
src/viewertemplates/contact_embedded.html
1 | <div align="center"> | 1 | <div align="center"> | ||
---|---|---|---|---|---|
2 | <table cellpadding="3" cellspacing="0"> | 2 | <table cellpadding="3" cellspacing="0"> | ||
3 | <tr> | 3 | <tr> | ||
4 | <td align="right" valign="top" width="30%" rowspan="3"> | 4 | <td align="right" valign="top" width="30%" rowspan="3"> | ||
5 | <img src="contact_photo" width="100" vspace="1"> | 5 | <img src="contact_photo" width="100" vspace="1"> | ||
6 | </td> | 6 | </td> | ||
7 | <td align="left" width="70%" colspan="2"><font size="+2" ><b>{{ contact.name }}</b></font></td> | 7 | <td align="left" width="70%" colspan="2"><font size="+2" ><b>{{ contact.realName }}</b></font></td> | ||
8 | </tr> | 8 | </tr> | ||
9 | <tr> | 9 | <tr> | ||
10 | <td align="left" colspan="2">{{ contact.job }}</td> | 10 | <td align="left" colspan="2"> | ||
11 | {% if contact.title %} | ||||
12 | {{ contact.title }} | ||||
13 | {% elif contact.role %} | ||||
14 | {{ contact.role }} | ||||
15 | {% else %} | ||||
16 | {{ contact.profession }} | ||||
17 | {% endif %} | ||||
18 | </td> | ||||
11 | </tr> | 19 | </tr> | ||
12 | <tr> | 20 | <tr> | ||
13 | <td align="left" colspan="2">{{ contact.organization }}</td> | 21 | <td align="left" colspan="2">{{ contact.organization }}</td> | ||
14 | </tr> | 22 | </tr> | ||
23 | | ||||
15 | {% if contact.birthday %} | 24 | {% if contact.birthday %} | ||
16 | {% with contact.birthdayi18n as title %} | 25 | <tr> | ||
17 | {% if contact.birthdayage %} | 26 | <td align="right" valign="top" width="30%"><b><font color="grey">{% i18n "Birthday" %}</font></b></td> | ||
18 | {% with contact.birthdayage|safe as value %} | 27 | <td align="left" valign="top" colspan="2"> | ||
19 | {% include "contact_row.html" %} | 28 | {{ contact.formattedBirthday }} {% i18np "(One year old)" "(%1 years old)" contact.age %} | ||
20 | {% endwith %} | 29 | </td> | ||
21 | {% else %} | 30 | </tr> | ||
22 | {% with contact.birthday|safe as value %} | | |||
23 | {% include "contact_row.html" %} | | |||
24 | {% endwith %} | | |||
25 | {% endif %} | | |||
26 | {% endwith %} | | |||
27 | {% endif %} | 31 | {% endif %} | ||
28 | 32 | | |||
29 | {% for phoneNumber in contact.phoneNumbers %} | 33 | {% for phoneNumber in contact.phoneNumbers %} | ||
30 | <tr> | 34 | <tr> | ||
31 | <td align="right" valign="top" width="30%"><b><font color="grey">{{ phoneNumber.typeLabel }}</font></b></td> | 35 | <td align="right" valign="top" width="30%"><b><font color="grey">{{ phoneNumber.typeLabel }}</font></b></td> | ||
32 | {% if phoneNumber.supportsSms %} | 36 | {% if phoneNumber.supportsSms %} | ||
33 | <td align="left" valign="top"><a href="phone:?index={{ forloop.counter0 }}">{{ phoneNumber.number }}</a></td> | 37 | <td align="left" valign="top"><a href="phone:?index={{ forloop.counter0 }}">{{ phoneNumber.number }}</a></td> | ||
34 | <td align="left" valign="top"><a href="sms:?index={{ forloop.counter0 }}"><img src="sms_icon" align="top"/></a></td> | 38 | <td align="left" valign="top"><a href="sms:?index={{ forloop.counter0 }}"><img src="sms_icon" align="top"/></a></td> | ||
35 | {% else %} | 39 | {% else %} | ||
36 | <td align="left" valign="top" colspan="2"><a href="phone:?index={{ forloop.counter0 }}">{{ phoneNumber.number }}</a></td> | 40 | <td align="left" valign="top" colspan="2"><a href="phone:?index={{ forloop.counter0 }}">{{ phoneNumber.number }}</a></td> | ||
37 | {% endif %} | 41 | {% endif %} | ||
38 | </tr> | 42 | </tr> | ||
39 | {% endfor %} | 43 | {% endfor %} | ||
40 | 44 | | |||
41 | {% for email in contact.emails %} | 45 | {% for email in contact.emails %} | ||
42 | <tr> | 46 | <tr> | ||
43 | <td align="right" valign="top" width="30%"><b><font color="grey">{{ contact.emailsi18n }}</font></b></td> | 47 | <td align="right" valign="top" width="30%"><b><font color="grey">{% i18n "Email" %}</font></b></td> | ||
44 | <td align="left" valign="top" colspan="2"><a href="mailto:{{ email.email }}">{{ email.email }}</a></td> | 48 | <td align="left" valign="top" colspan="2"><a href="mailto:{{ email.email }}">{{ email.email }}</a></td> | ||
45 | </tr> | 49 | </tr> | ||
46 | {% endfor %} | 50 | {% endfor %} | ||
47 | 51 | | |||
48 | {% for imAddress in contact.imAddresses %} | 52 | {% for imAddress in contact.imAddresses %} | ||
49 | {% with imAddress.type as title %} | 53 | <tr> | ||
50 | {% with imAddress.imAddress|safe as value %} | 54 | <td align="right" valign="top" width="30%"><b><font color="grey">{{ imAddress.serviceLabel }}</font></b></td> | ||
51 | {% with imAddress.imIcon|safe as value2 %} | 55 | <td align="left" valign="top">{{ imAddress.address|safe }}</td> | ||
52 | {% include "contact_row.html" %} | 56 | <td align="left" valign="top">{% icon imAddress.serviceIcon small %}</td> | ||
53 | {% endwith %} | 57 | </tr> | ||
54 | {% endwith %} | | |||
55 | {% endwith %} | | |||
56 | {% endfor %} | 58 | {% endfor %} | ||
57 | 59 | | |||
58 | {% for website in contact.urls %} | 60 | {% for website in contact.urls %} | ||
59 | <tr> | 61 | <tr> | ||
60 | <td align="right" valign="top" width="30%"><b><font color="grey">{{ contact.websitei18n }}</font></b></td> | 62 | <td align="right" valign="top" width="30%"><b><font color="grey">{% i18n "Website" %}</font></b></td> | ||
61 | <td align="left" valign="top" colspan="2"> | 63 | <td align="left" valign="top" colspan="2"> | ||
62 | {% if website.url.scheme %} | 64 | {% if website.url.scheme %} | ||
63 | <a href="{{ website.url }}"> | 65 | <a href="{{ website.url }}"> | ||
64 | {% else %} | 66 | {% else %} | ||
65 | <a href="https://{{ website.url }}"> | 67 | <a href="https://{{ website.url }}"> | ||
66 | {% endif %} | 68 | {% endif %} | ||
67 | {{ website.url }}</a></td> | 69 | {{ website.url }}</a></td> | ||
68 | </tr> | 70 | </tr> | ||
69 | {% endfor %} | 71 | {% endfor %} | ||
70 | 72 | | |||
71 | {% if contact.blogFeed %} | 73 | {% if contact.blogFeed %} | ||
72 | <tr> | 74 | <tr> | ||
73 | <td align="right" valign="top" width="30%"><b><font color="grey">{{ contact.blogUrli18n }}</font></b></td> | 75 | <td align="right" valign="top" width="30%"><b><font color="grey">{% i18n "Blog Feed" %}</font></b></td> | ||
74 | <td align="left" valign="top" colspan="2"> | 76 | <td align="left" valign="top" colspan="2"> | ||
75 | {% if contact.blogFeed.scheme %} | 77 | {% if contact.blogFeed.scheme %} | ||
76 | <a href="{{ contact.blogFeed }}"> | 78 | <a href="{{ contact.blogFeed }}"> | ||
77 | {% else %} | 79 | {% else %} | ||
78 | <a href="https://{{ contact.blogFeed }}"> | 80 | <a href="https://{{ contact.blogFeed }}"> | ||
79 | {% endif %} | 81 | {% endif %} | ||
80 | {{ contact.blogFeed }}</a> | 82 | {{ contact.blogFeed }}</a> | ||
81 | </tr> | 83 | </tr> | ||
Show All 12 Lines | 87 | <tr> | |||
94 | </a></td> | 96 | </a></td> | ||
95 | <td align="left" valign="top"><a href="address:?index={{ forloop.counter0 }}"> | 97 | <td align="left" valign="top"><a href="address:?index={{ forloop.counter0 }}"> | ||
96 | <img src="map_icon" align="top"/> | 98 | <img src="map_icon" align="top"/> | ||
97 | </a></td> | 99 | </a></td> | ||
98 | </tr> | 100 | </tr> | ||
99 | {% endfor %} | 101 | {% endfor %} | ||
100 | 102 | | |||
101 | {% if contact.profession %} | 103 | {% if contact.profession %} | ||
102 | {% with contact.Professioni18n as title %} | 104 | {% with contact.professionLabel as title %} | ||
103 | {% with contact.profession as value %} | 105 | {% with contact.profession as value %} | ||
104 | {% include "contact_row.html" %} | 106 | {% include "contact_row.html" %} | ||
105 | {% endwith %} | 107 | {% endwith %} | ||
106 | {% endwith %} | 108 | {% endwith %} | ||
107 | {% endif %} | 109 | {% endif %} | ||
108 | 110 | | |||
109 | {% if contact.department %} | 111 | {% if contact.department %} | ||
110 | {% with contact.departmenti18n as title %} | 112 | {% with contact.departmentLabel as title %} | ||
111 | {% with contact.department as value %} | 113 | {% with contact.department as value %} | ||
112 | {% include "contact_row.html" %} | 114 | {% include "contact_row.html" %} | ||
113 | {% endwith %} | 115 | {% endwith %} | ||
114 | {% endwith %} | 116 | {% endwith %} | ||
115 | {% endif %} | 117 | {% endif %} | ||
116 | 118 | | |||
117 | {% if contact.office %} | 119 | {% if contact.office %} | ||
118 | {% with contact.officei18n as title %} | 120 | {% with contact.officeLabel as title %} | ||
119 | {% with contact.office as value %} | 121 | {% with contact.office as value %} | ||
120 | {% include "contact_row.html" %} | 122 | {% include "contact_row.html" %} | ||
121 | {% endwith %} | 123 | {% endwith %} | ||
122 | {% endwith %} | 124 | {% endwith %} | ||
123 | {% endif %} | 125 | {% endif %} | ||
124 | 126 | | |||
125 | {% if contact.manager %} | 127 | {% if contact.managersName %} | ||
126 | {% with contact.manageri18n as title %} | 128 | {% with contact.managerLabel as title %} | ||
127 | {% with contact.manager as value %} | 129 | {% with contact.managersName as value %} | ||
128 | {% include "contact_row.html" %} | 130 | {% include "contact_row.html" %} | ||
129 | {% endwith %} | 131 | {% endwith %} | ||
130 | {% endwith %} | 132 | {% endwith %} | ||
131 | {% endif %} | 133 | {% endif %} | ||
132 | 134 | | |||
133 | {% if contact.assistant %} | 135 | {% if contact.assistantsName %} | ||
134 | {% with contact.assistanti18n as title %} | 136 | {% with contact.assistantLabel as title %} | ||
135 | {% with contact.assistant as value %} | 137 | {% with contact.assistantsName as value %} | ||
136 | {% include "contact_row.html" %} | 138 | {% include "contact_row.html" %} | ||
137 | {% endwith %} | 139 | {% endwith %} | ||
138 | {% endwith %} | 140 | {% endwith %} | ||
139 | {% endif %} | 141 | {% endif %} | ||
140 | 142 | | |||
141 | {% if contact.spouse %} | 143 | {% if contact.spousesName %} | ||
142 | {% with contact.spousei18n as title %} | 144 | {% with contact.spouseLabel as title %} | ||
143 | {% with contact.spouse as value %} | 145 | {% with contact.spousesName as value %} | ||
144 | {% include "contact_row.html" %} | 146 | {% include "contact_row.html" %} | ||
145 | {% endwith %} | 147 | {% endwith %} | ||
146 | {% endwith %} | 148 | {% endwith %} | ||
147 | {% endif %} | 149 | {% endif %} | ||
148 | 150 | | |||
149 | {% if contact.anniversary %} | 151 | {% if contact.anniversary %} | ||
150 | {% with contact.anniversaryi18n as title %} | 152 | {% with contact.anniversaryLabel as title %} | ||
151 | {% with contact.anniversary as value %} | 153 | {% with contact.formattedAnniversary as value %} | ||
152 | {% include "contact_row.html" %} | 154 | {% include "contact_row.html" %} | ||
153 | {% endwith %} | 155 | {% endwith %} | ||
154 | {% endwith %} | 156 | {% endwith %} | ||
155 | {% endif %} | 157 | {% endif %} | ||
156 | 158 | | |||
157 | {% for customField in contact.customFieldsUrl %} | 159 | {% for customField in customFieldsUrl %} | ||
158 | {% with customField.title as title %} | 160 | {% with customField.title as title %} | ||
159 | {% with customField.value|safe as value %} | 161 | {% with customField.value|safe as value %} | ||
160 | {% include "contact_row.html" %} | 162 | {% include "contact_row.html" %} | ||
161 | {% endwith %} | 163 | {% endwith %} | ||
162 | {% endwith %} | 164 | {% endwith %} | ||
163 | {% endfor %} | 165 | {% endfor %} | ||
164 | 166 | | |||
165 | {% for customField in contact.customFields %} | 167 | {% for customField in customFields %} | ||
166 | {% with customField.title as title %} | 168 | {% with customField.title as title %} | ||
167 | {% with customField.value as value %} | 169 | {% with customField.value as value %} | ||
168 | {% include "contact_row.html" %} | 170 | {% include "contact_row.html" %} | ||
169 | {% endwith %} | 171 | {% endwith %} | ||
170 | {% endwith %} | 172 | {% endwith %} | ||
171 | {% endfor %} | 173 | {% endfor %} | ||
172 | 174 | | |||
173 | {% if contact.addressBookName %} | 175 | {% if contact.addressBookName %} | ||
174 | {% with contact.addressBookNamei18n as title %} | 176 | {% with contact.addressBookLabel as title %} | ||
175 | {% with contact.addressBookName as value %} | 177 | {% with contact.addressBookName as value %} | ||
176 | {% include "contact_row.html" %} | 178 | {% include "contact_row.html" %} | ||
177 | {% endwith %} | 179 | {% endwith %} | ||
178 | {% endwith %} | 180 | {% endwith %} | ||
179 | {% endif %} | 181 | {% endif %} | ||
180 | {% if contact.note %} | 182 | {% if contact.note %} | ||
181 | {% with contact.notei18n as title %} | 183 | {% with contact.noteLabel as title %} | ||
182 | {% with contact.note|safe as value %} | 184 | {% with contact.note|linebreaksbr as value %} | ||
183 | {% include "contact_row.html" %} | 185 | {% include "contact_row.html" %} | ||
184 | {% endwith %} | 186 | {% endwith %} | ||
185 | {% endwith %} | 187 | {% endwith %} | ||
186 | {% endif %} | 188 | {% endif %} | ||
187 | </table> | 189 | </table> | ||
188 | {% if contact.hasqrcode %} | 190 | {% if hasqrcode %} | ||
189 | <p align="center"> | 191 | <p align="center"> | ||
190 | <img src="qrcode" vspace="1"> | 192 | <img src="qrcode" vspace="1"> | ||
191 | </p> | 193 | </p> | ||
192 | {% endif %} | 194 | {% endif %} | ||
193 | </div> | 195 | </div> |