Project

General

Profile

« Previous | Next » 

Revision 54e68a06

Added by Frédéric Péters about 12 years ago

agenda: only display line with phone number if there is one

View differences:

calebasse/agenda/templates/agenda/ajax-worker-tab.html
59 59
    {% if appointment.patient_record_id %}
60 60
    <p class="phones">
61 61
    {% for address in appointment.patient.addresses.all %}
62
      {% if address.place_of_life %}
62
      {% if address.place_of_life and address.phone %}
63 63
        <span title="{{ address.number }} {{ address.street }} {{ address.zip_code }} {{ address.city }}" class="icon-home-space">{{ address.phone }}</span>
64 64
        {% for contact in address.patientcontact_set.all  %}
65 65
          <span title="{{ contact.first_name }} {{ contact.last_name|upper }}" class="icon-user-space">{{ contact.mobile }}</span>

Also available in: Unified diff