diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-04-08 03:38:56 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-04-15 21:54:18 +0200 |
commit | e56df542c06cfc534b74d38f7068e398422f635c (patch) | |
tree | f9d914b52025ea84ad22616c234aa29cfe3003f4 /ishtar_common | |
parent | c474263518651eb1a89caeb73e3df5913239c03c (diff) | |
download | Ishtar-e56df542c06cfc534b74d38f7068e398422f635c.tar.bz2 Ishtar-e56df542c06cfc534b74d38f7068e398422f635c.zip |
Improve person sheet
Diffstat (limited to 'ishtar_common')
-rw-r--r-- | ishtar_common/templates/ishtar/sheet_person.html | 28 |
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 %}–{% endif %}</td> + <td>{% if item.phone %}{{item.phone}}{% else %}–{% endif %}</td> + </tr>{% endif %} + {% if item.phone2 or item.phone_desc2 %}<tr> + <td>{% if item.phone_desc2 %}{{item.phone_desc2}}{% else %}–{% endif %}</td> + <td>{% if item.phone2 %}{{item.phone2}}{% else %}–{% endif %}</td> + </tr>{% endif %} + {% if item.phone3 or item.phone_desc3 %}<tr> + <td>{% if item.phone_desc3 %}{{item.phone_desc3}}{% else %}–{% endif %}</td> + <td>{% if item.phone3 %}{{item.phone3}}{% else %}–{% endif %}</td> + </tr>{% endif %} + {% if item.mobile_phone %}<tr> <td>{% trans "Mobile phone" %}</td> <td>{{item.mobile_phone}}</td> - </tr> + </tr>{% endif %} </table> {% endif %} |