From 1fc4bbbaeb62032a6a14d3353381d74f175eb342 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 26 Aug 2013 23:55:44 +0200 Subject: Change Person selection form - add a Person sheet (refs #425) * change sheet creation to allow non historized object * add related names corresponding to person for operation, files and sources (through Author) * use a jqGrid associated to a form to select persons * create sheet templates for persons * add appropriate urls --- ishtar_common/templates/ishtar/sheet_person.html | 108 +++++++++++++++++++++++ 1 file changed, 108 insertions(+) create mode 100644 ishtar_common/templates/ishtar/sheet_person.html (limited to 'ishtar_common/templates/ishtar/sheet_person.html') diff --git a/ishtar_common/templates/ishtar/sheet_person.html b/ishtar_common/templates/ishtar/sheet_person.html new file mode 100644 index 000000000..61b87654d --- /dev/null +++ b/ishtar_common/templates/ishtar/sheet_person.html @@ -0,0 +1,108 @@ +{% extends "ishtar/sheet.html" %} +{% load i18n %} +{% block content %} +
{%trans "Export as:"%} {%trans "OpenOffice.org file"%}, {%trans "PDF file"%}
+ +

{% trans "Person"%}

+ +

{{item.name}}

+

{{item.surname}}

+{% if item.email %}

{{item.email}}

{% endif %} +

{{item.person_types_list}}

+{% if item.address %}

{{item.address}}

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

{{item.address_complement}}

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

{{item.postal_code}}

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

{{item.town}}

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

{{item.phone}}

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

{{item.mobile_phone}}

{% endif %} + + +{% 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 %} +{% endif %} + + + + + + + + + + + + + + + {% for operation in item.operation_responsability.all %} + + + + + + + + + + + {% empty %} + + {% endfor %} +
{%trans "Associated operations"%}
{% trans "Year" %}{% trans "Ref." %}Code Patriarche{% trans "Type" %}{% trans "In charge" %}{% trans "Start date" %}{% trans "Excavation end date" %} 
{{operation.year|default:""}}{{operation.operation_code|default:""}}{{operation.code_patriarche|default:""}}{{operation.operation_type}}{{operation.in_charge|default:""}}{{operation.start_date|default:""}}{{operation.excavation_end_date|default:""}}
{% trans "No operation associated to this person" %}
+ + + + + + + + + + + + + {% for file in item.file_responsability.all %} + + + + + + + + + + {% empty %} + + {% endfor %} +
{%trans "Associated archaelogical files"%}
{% trans "Ref." %}{% trans "Year" %}{% trans "Internal ref." %}{% trans "File type" %}Type de saisine{% trans "Towns" %} 
{{file.numeric_reference}}{{file.year}}{{file.internal_reference}}{{file.file_type}}{{file.saisine_type}}{{file.town_list}}
{% trans "No archaelogical file associated to this person" %}
+ + + + + + + + + + {% for author in item.author.all %} + {% for doc in author.related_sources %} + + + + + + + {% empty %} + + {% endfor %} + {% endfor %} +
{%trans "Documents"%}
{% trans "Year" %}{% trans "Title" %}{% trans "Type" %}{% trans "Link" %}
{{ doc.creation_date|date:"Y"}}{{ doc.title }}{{ doc.source_type }}{% if doc.associated_url %}{% trans "Link"%}{% endif %}
{% trans "No document associated to this person" %}
+ + +{% endblock %} -- cgit v1.2.3