summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ishtar_common/templates/ishtar/sheet_person.html28
1 files changed, 14 insertions, 14 deletions
diff --git a/ishtar_common/templates/ishtar/sheet_person.html b/ishtar_common/templates/ishtar/sheet_person.html
index 6fd5f4336..5027026c5 100644
--- a/ishtar_common/templates/ishtar/sheet_person.html
+++ b/ishtar_common/templates/ishtar/sheet_person.html
@@ -25,22 +25,22 @@
<th>{% trans "Phone type" %}</th>
<th>{% trans "Number" %}</th>
</tr>
- <tr>
- <td>{{item.phone_desc}}</td>
- <td>{{item.phone}}</td>
- </tr>
- <tr>
- <td>{{item.phone_desc2}}</td>
- <td>{{item.phone2}}</td>
- </tr>
- <tr>
- <td>{{item.phone_desc3}}</td>
- <td>{{item.phone3}}</td>
- </tr>
- <tr>
+ {% if item.phone or item.phone_desc %}<tr>
+ <td>{% if item.phone_desc %}{{item.phone_desc}}{% else %}&ndash;{% endif %}</td>
+ <td>{% if item.phone %}{{item.phone}}{% else %}&ndash;{% endif %}</td>
+ </tr>{% endif %}
+ {% if item.phone2 or item.phone_desc2 %}<tr>
+ <td>{% if item.phone_desc2 %}{{item.phone_desc2}}{% else %}&ndash;{% endif %}</td>
+ <td>{% if item.phone2 %}{{item.phone2}}{% else %}&ndash;{% endif %}</td>
+ </tr>{% endif %}
+ {% if item.phone3 or item.phone_desc3 %}<tr>
+ <td>{% if item.phone_desc3 %}{{item.phone_desc3}}{% else %}&ndash;{% endif %}</td>
+ <td>{% if item.phone3 %}{{item.phone3}}{% else %}&ndash;{% endif %}</td>
+ </tr>{% endif %}
+ {% if item.mobile_phone %}<tr>
<td>{% trans "Mobile phone" %}</td>
<td>{{item.mobile_phone}}</td>
- </tr>
+ </tr>{% endif %}
</table>
{% endif %}