Commit 4a62edac authored by Nicolas Joyard's avatar Nicolas Joyard
Browse files

Add phone numbers

parent e3af7ccc
.address
- if address.floor or address.office_number
.detail
- if address.floor
%span.floor Floor {{ address.floor }}
- if address.office_number
%span.office Office {{ address.office_number }}
- if address.floor and address.office_number
.office Floor {{ address.floor }} - office {{ address.office_number }}
.street {{ address.number }} {{ address.street }}
.city {{ address.city }} {{ address.postcode }}, {{ address.country.name }}
......@@ -67,9 +67,16 @@
%td
= email.email|email_link
- if representative.phone_set.all|length > 0
%tr
%th Phone numbers
%td
- for phone in representative.phone_set.all
.phone {{ phone.number }}
- for address in representative.address_set.all
%tr
%th
= address.name
%td
- include 'representatives/_address_block.html' with address=address
- include 'representatives/_address_block.html' with address=address
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment