diff options
| -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 %} | 
