summaryrefslogtreecommitdiff
path: root/ishtar_common/templates/ishtar/sheet_person.html
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/templates/ishtar/sheet_person.html')
-rw-r--r--ishtar_common/templates/ishtar/sheet_person.html26
1 files changed, 13 insertions, 13 deletions
diff --git a/ishtar_common/templates/ishtar/sheet_person.html b/ishtar_common/templates/ishtar/sheet_person.html
index b6bf99d56..38bc39c58 100644
--- a/ishtar_common/templates/ishtar/sheet_person.html
+++ b/ishtar_common/templates/ishtar/sheet_person.html
@@ -1,5 +1,5 @@
{% extends "ishtar/sheet.html" %}
-{% load i18n %}
+{% load i18n window_field %}
{% block head_sheet %}
{{block.super}}
@@ -9,18 +9,18 @@
{% 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>
-<p><label>{% trans "Name" %}</label> <span class='value'>{{item.name}}</span></p>
-<p><label>{% trans "Surname" %}</label> <span class='value'>{{item.surname}}</span></p>
-<p><label>{%trans "Created by:"%}</label> <span class='value'>{{ item.history_creator.ishtaruser.full_label }}</span></p>
-{% if item.email %}<p><label>{% trans "Email" %}</label> <span class='value'>{{item.email}}</span></p>{% endif %}
-<p><label>{% trans "Type(s)" %}</label> <span class='value'>{{item.person_types_list}}</span></p>
-{% if item.address %}<p><label>{% trans "Address" %}</label> <span class='value'>{{item.address}}</span></p> {% endif %}
-{% if item.address_complement %}<p><label>{% trans "Address complement" %}</label> <span class='value'>{{item.address_complement}}</span></p> {% endif %}
-{% if item.postal_code %}<p><label>{% trans "Postal code" %}</label> <span class='value'>{{item.postal_code}}</span></p> {% endif %}
-{% if item.town %}<p><label>{% trans "Town" %}</label> <span class='value'>{{item.town}}</span></p> {% endif %}
-{% if item.phone %}<p><label>{% trans "Phone" %}</label> <span class='value'>{{item.phone}}</span></p> {% endif %}
-{% if item.mobile_phone %}<p><label>{% trans "Mobile phone" %}</label> <span class='value'>{{item.mobile_phone}}</span></p> {% endif %}
-
+{% 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 %}
+{% 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 %}
{% if item.organization %}<h3>{% trans "Associated organization"%}</h3>
<p><label>{% trans "Name" %}</label> <span class='value'>{{item.organization}}</span></p>