diff options
Diffstat (limited to 'ishtar_common/templates/ishtar/sheet_organization.html')
-rw-r--r-- | ishtar_common/templates/ishtar/sheet_organization.html | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/ishtar_common/templates/ishtar/sheet_organization.html b/ishtar_common/templates/ishtar/sheet_organization.html new file mode 100644 index 000000000..64f8fe5c7 --- /dev/null +++ b/ishtar_common/templates/ishtar/sheet_organization.html @@ -0,0 +1,41 @@ +{% extends "ishtar/sheet.html" %} +{% load i18n %} + +{% block head_sheet %} +{{block.super}} +<h1>{% trans "Organization"%}</h1> +{% endblock %} + +{% block content %} +<div class='tool'>{%trans "Export as:"%} <a href='{% url show-organization item.pk "odt" %}'>{%trans "OpenOffice.org file"%}</a>, <a href='{% url show-organization item.pk "pdf" %}'>{%trans "PDF file"%}</a></div> + +<p><label>{% trans "Name" %}</label> <span class='value'>{{item.name}}</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 %} + + +<table> + <caption>{%trans "Person in the organization"%}</caption> + <tr> + <th>{% trans "Name" %}</th> + <th>{% trans "Surname" %}</th> + <th>{% trans "Type" %}</th> + <th class='link'> </th> + </tr> + {% for person in item.members.all %} + <tr> + <td class='string'>{{person.name|default:""}}</td> + <td class='string'>{{person.surname|default:""}}</td> + <td>{% for type in person.person_types.all %}{% if forloop.counter0 %}, {% endif %}{{type.label}}{% endfor %}</td> + <td class='link'><a href="#" onclick='load_window("{%url show-person person.pk ''%}")'>{% trans "Details" %}</a></td> + </tr> + {% empty %} + <tr><td colspan="8" class='no_items'>{% trans "No person in this organization" %}</td></tr> + {% endfor %} +</table> + +{% endblock %} |