From 0457a5306e6c79bfa1a8abe8cd3949b4571b7033 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 14 Dec 2015 22:46:56 +0100 Subject: Person sheet: fix organization display --- ishtar_common/templates/ishtar/sheet_person.html | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'ishtar_common') diff --git a/ishtar_common/templates/ishtar/sheet_person.html b/ishtar_common/templates/ishtar/sheet_person.html index f8657d976..019f8e3d7 100644 --- a/ishtar_common/templates/ishtar/sheet_person.html +++ b/ishtar_common/templates/ishtar/sheet_person.html @@ -22,14 +22,14 @@ {% field "Phone" item.phone %} {% field "Mobile phone" item.mobile_phone %} -{% if item.organization %}

{% trans "Associated organization"%}

-

{{item.organization}}

-{% if item.organization.address %}

{{item.organization.address}}

{% endif %} -{% if item.organization.address_complement %}

{{item.organization.address_complement}}

{% endif %} -{% if item.organization.postal_code %}

{{item.organization.postal_code}}

{% endif %} -{% if item.organization.town %}

{{item.organization.town}}

{% endif %} -{% if item.organization.phone %}

{{item.organization.phone}}

{% endif %} -{% if item.organization.mobile_phone %}

{{item.organization.mobile_phone}}

{% endif %} +{% if item.attached_to %}

{% trans "Associated organisation"%}

+{% field "Name" item.attached_to %} +{% field "Address" item.attached_to.address %} +{% field "Address complement" item.attached_to.address_complement %} +{% field "Postal code" item.attached_to.postal_code %} +{% field "Town" item.attached_to.town %} +{% field "Phone" item.attached_to.phone %} +{% field "Mobile phone" item.attached_to.mobile_phone %} {% endif %} -- cgit v1.2.3