agenda: don't display mobile in resources listing if not present for the patientrecord

Closes #5087
This commit is contained in:
Serghei Mihai 2014-07-03 10:44:59 +02:00
parent 7a2d7c8a9c
commit 4c00b57037
1 changed files with 3 additions and 1 deletions

View File

@ -70,7 +70,9 @@
{% if address.place_of_life and address.phone %}
<span title="{{ address.number }} {{ address.street }} {{ address.zip_code }} {{ address.city }}" class="icon-home-space">{{ address.phone }}</span>
{% for contact in address.patientcontact_set.all %}
<span title="{{ contact.first_name }} {{ contact.last_name|upper }}" class="icon-user-space">{{ contact.mobile }}</span>
{% if contact.mobile %}
<span title="{{ contact.first_name }} {{ contact.last_name|upper }}" class="icon-user-space">{{ contact.mobile }}</span>
{% endif %}
{% endfor %}
{% endif %}
{% endfor %}