From beb45ac4d420034f9aec53eaf7ea783e178d5361 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sat, 20 Oct 2012 15:25:07 +0200 Subject: Djangoization - Major refactoring (step 3) Reorganization of views, urls, menus, admin, forms. Changes on models. --- ishtar_common/templates/sheet_contextrecord.html | 10 +++++----- ishtar_common/templates/sheet_operation.html | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 'ishtar_common/templates') diff --git a/ishtar_common/templates/sheet_contextrecord.html b/ishtar_common/templates/sheet_contextrecord.html index c2b94bafe..806b06288 100644 --- a/ishtar_common/templates/sheet_contextrecord.html +++ b/ishtar_common/templates/sheet_contextrecord.html @@ -109,7 +109,7 @@ {% trans "Parcel" %}   - {% for find in item.base_items.all %} + {% for find in item.base_finds.all %} {{ find.full_label }} {# Displayed as (Patriarche operation code)-(Record unit label)-(Finds label). #} @@ -119,10 +119,10 @@ {# or displayed as (Year)-(index)-(Record unit label)-(material code)-(Finds label indexed by material type) #} {{find.context_record}} - {{ find.get_last_item.dating}}{# TODO .all|join:", " ? #} - {{ find.get_last_item.description }} - {{ find.get_last_item.weight }} - {{ find.get_last_item.item_number }} + {{ find.get_last_find.dating}}{# TODO .all|join:", " ? #} + {{ find.get_last_find.description }} + {{ find.get_last_find.weight }} + {{ find.get_last_find.item_number }} {{ item.context_record.parcel.short_label }} {% trans "Details" %} {#{%trans "Details"%}#} diff --git a/ishtar_common/templates/sheet_operation.html b/ishtar_common/templates/sheet_operation.html index aa571d20c..edceca989 100644 --- a/ishtar_common/templates/sheet_operation.html +++ b/ishtar_common/templates/sheet_operation.html @@ -156,17 +156,17 @@   {% for context_record in item.context_record.all %} - {% for find in context_record.base_items.all %} + {% for find in context_record.base_finds.all %} {{ find.full_label }} {# Displayed as (Patriarche operation code)-(Record unit label)-(Finds label). #} {# or displayed as (Year)-(index)-(Record unit label)-(Finds label). #} {{ find.material_type_label }} {{find.context_record.label}} - {{ find.get_last_item.dating}}{# TODO .all|join:", " ? #} - {{ find.get_last_item.description }} - {{ find.get_last_item.weight }} - {{ find.get_last_item.item_number }} + {{ find.get_last_find.dating}}{# TODO .all|join:", " ? #} + {{ find.get_last_find.description }} + {{ find.get_last_find.weight }} + {{ find.get_last_find.item_number }} {{ context_record.parcel.short_label }} {% trans "Details" %} {#{%trans "Details"%}#} -- cgit v1.2.3