From 03df7178744588f3d69cb5ffb36d55eea9217e28 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 8 Apr 2016 03:38:56 +0200 Subject: Improve person sheet --- ishtar_common/templates/ishtar/sheet_person.html | 28 ++++++++++++------------ 1 file 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 @@ {% trans "Phone type" %} {% trans "Number" %} - - {{item.phone_desc}} - {{item.phone}} - - - {{item.phone_desc2}} - {{item.phone2}} - - - {{item.phone_desc3}} - {{item.phone3}} - - + {% if item.phone or item.phone_desc %} + {% if item.phone_desc %}{{item.phone_desc}}{% else %}–{% endif %} + {% if item.phone %}{{item.phone}}{% else %}–{% endif %} + {% endif %} + {% if item.phone2 or item.phone_desc2 %} + {% if item.phone_desc2 %}{{item.phone_desc2}}{% else %}–{% endif %} + {% if item.phone2 %}{{item.phone2}}{% else %}–{% endif %} + {% endif %} + {% if item.phone3 or item.phone_desc3 %} + {% if item.phone_desc3 %}{{item.phone_desc3}}{% else %}–{% endif %} + {% if item.phone3 %}{{item.phone3}}{% else %}–{% endif %} + {% endif %} + {% if item.mobile_phone %} {% trans "Mobile phone" %} {{item.mobile_phone}} - + {% endif %} {% endif %} -- cgit v1.2.3