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/ressources.html
102 102
             {% if appointment.patient_record_id %}
103 103
             <p class="phones">
104 104
             {% for address in appointment.patient.addresses.all %}
105
               {% if address.place_of_life %}
105
               {% if address.place_of_life and address.phone %}
106 106
                 <span title="{{ address.number }} {{ address.street }} {{ address.zip_code }} {{ address.city }}" class="icon-home-space">{{ address.phone }}</span>
107 107
                 {% for contact in address.patientcontact_set.all  %}
108 108
                   <span title="{{ contact.first_name }} {{ contact.last_name|upper }}" class="icon-user-space">{{ contact.mobile }}</span>

Also available in: Unified diff