From 74ec5866a7f283088cbcae3d74eb33e04e41732b Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 22 Apr 2011 11:53:12 +0200 Subject: Finds available in operation sheet (closes #373) --- ishtar/templates/sheet_operation.html | 66 +++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) diff --git a/ishtar/templates/sheet_operation.html b/ishtar/templates/sheet_operation.html index f6567882f..7cf6554b4 100644 --- a/ishtar/templates/sheet_operation.html +++ b/ishtar/templates/sheet_operation.html @@ -97,6 +97,27 @@ {% endfor %} +

{% trans "Documentation"%}

+ + + + + + + + + {% for doc in item.doc.all %} + + + + + + + {% empty %} + + {% endfor %} +
{%trans "Documents"%}
{% trans "Title" %}{% trans "Type" %}{% trans "Authors" %}{% trans "Localisation" %}
{{ doc.title }}{{doc.type}}{{ doc.author.all|join:", " }}{{ doc.localisation }}
{% trans "No document associated to this operation" %}
+ @@ -125,4 +146,49 @@ {% endfor %}
{%trans "Context records"%}
+ + + + + + + + + + + + + + {% for parcel in item.parcels.all %} + {% for context_record in parcel.context_record.all %} + {% for find in context_record.base_items.all %} + + +{# Displayed as (Patriarche operation code)-(Record unit label)-(Finds label). #} +{# or displayed as (Year)-(index)-(Record unit label)-(Finds label). #} + +{# Displayed as (Patriarche operation code)-(Record unit label)-(material code)-(Finds label indexed by material type). #} +{# or displayed as (Year)-(index)-(Record unit label)-(material code)-(Finds label indexed by material type) #} + + + {# TODO .all|join:", " ? #} + + + + + + {#{%trans "Details"%}#} + + {% empty %} + + {% endfor %} + {% empty %} + + {% endfor %} + {% empty %} + + {% endfor %} +
{%trans "Finds"%}
{% trans "Find" %}{% trans "Material type" %}{% trans "Context record" %}{% trans "Periods" %}{% trans "Description" %}{% trans "Weight" %}{% trans "Numbers" %}{% trans "Parcel" %} 
{{ find.full_label }}{{ find.get_last_item.material_type_label }}{{find.context_record.short_label}}{{ find.get_last_item.dating}}{{ find.get_last_item.description }}{{ find.get_last_item.weight }}{{ find.get_last_item.item_number }}{{ item.context_record.parcel.short_label }}
{% trans "No find associated to context record:" %} {{context_record.short_label}}
{% trans "No context record associated to parcel:" %} {{parcel.short_label}}
{% trans "No parcel associated to this operation" %}
+ + {% endblock %} -- cgit v1.2.3