summaryrefslogtreecommitdiff
path: root/ishtar_common/templates
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2016-04-08 03:10:17 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2016-04-15 21:54:18 +0200
commitb83429c7b75ebcdd249475b227f6bcabb30bf16e (patch)
treeba665503a278f2f4c84a7a3e2ea5d27b0b297713 /ishtar_common/templates
parentbb9e9cb8d1f5f7fb8b30cce231fccbd4b1cf86cf (diff)
downloadIshtar-b83429c7b75ebcdd249475b227f6bcabb30bf16e.tar.bz2
Ishtar-b83429c7b75ebcdd249475b227f6bcabb30bf16e.zip
Adapt person sheet to new fields
Diffstat (limited to 'ishtar_common/templates')
-rw-r--r--ishtar_common/templates/ishtar/sheet_person.html43
1 files changed, 41 insertions, 2 deletions
diff --git a/ishtar_common/templates/ishtar/sheet_person.html b/ishtar_common/templates/ishtar/sheet_person.html
index 796fe2c4a..6fd5f4336 100644
--- a/ishtar_common/templates/ishtar/sheet_person.html
+++ b/ishtar_common/templates/ishtar/sheet_person.html
@@ -9,18 +9,57 @@
{% block content %}
<div class='tool'>{%trans "Export as:"%} <a href='{% url show-person item.pk "odt" %}'>{%trans "OpenOffice.org file"%}</a>, <a href='{% url show-person item.pk "pdf" %}'>{%trans "PDF file"%}</a></div>
+<h3>{% trans "Identity" %}</h3>
+
{% field "Name" item.name %}
{% field "Surname" item.surname %}
{% field "Raw name" item.raw_name %}
{% field "Created by" item.history_creator.ishtaruser.full_label %}
{% field "Email" item.email %}
{% field "Type(s)" item.person_types_list %}
+
+{% if item.phone or item.phone2 or item.phone3 or item.mobile_phone %}
+<table class='formset table-form'>
+ <caption>{% trans "Phone" %}</caption>
+ <tr>
+ <th>{% trans "Phone type" %}</th>
+ <th>{% trans "Number" %}</th>
+ </tr>
+ <tr>
+ <td>{{item.phone_desc}}</td>
+ <td>{{item.phone}}</td>
+ </tr>
+ <tr>
+ <td>{{item.phone_desc2}}</td>
+ <td>{{item.phone2}}</td>
+ </tr>
+ <tr>
+ <td>{{item.phone_desc3}}</td>
+ <td>{{item.phone3}}</td>
+ </tr>
+ <tr>
+ <td>{% trans "Mobile phone" %}</td>
+ <td>{{item.mobile_phone}}</td>
+ </tr>
+</table>
+{% endif %}
+
+{% if item.address or item.postal_code or item.town %}
+<h3>{% trans "Business address" %}</h3>
{% field "Address" item.address %}
{% field "Address complement" item.address_complement %}
{% field "Postal code" item.postal_code %}
{% field "Town" item.town %}
-{% field "Phone" item.phone %}
-{% field "Mobile phone" item.mobile_phone %}
+{% endif %}
+
+{% if item.alt_address or item.alt_postal_code or item.alt_town %}
+<h3>{% trans "Other address" %}</h3>
+{% field "Address" item.alt_address %}
+{% field "Address complement" item.alt_address_complement %}
+{% field "Postal code" item.alt_postal_code %}
+{% field "Town" item.alt_town %}
+{% endif %}
+
{% if item.attached_to %}<h3>{% trans "Associated organization"%}</h3>
{% field "Name" item.attached_to %}