From f16f5ee1a62d2698379e5083c7bfc91cdfe2e299 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sun, 3 Jul 2011 19:07:23 +0200 Subject: Correct context record in operation sheet (closes #504) --- ishtar/templates/sheet_operation.html | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/ishtar/templates/sheet_operation.html b/ishtar/templates/sheet_operation.html index 4db45cc78..b2713602f 100644 --- a/ishtar/templates/sheet_operation.html +++ b/ishtar/templates/sheet_operation.html @@ -128,21 +128,17 @@ {% trans "Parcel" %}   - {% for parcel in item.parcels.all %} {% for context_record in item.context_record.all %} {{ context_record.label }} {{context_record.unit}} - {{ context_record.datings.all|join:", " }}{# periods ?#} + {{ context_record.datings.all|join:", " }}{# periods ?#} {{ context_record.description }} - {{ parcel.section }} - {{parcel.parcel_number}} + {{ context_record.parcel.section }} - {{context_record.parcel.parcel_number}} {% trans "Details" %} {% empty %} - {% trans "No context record associated to parcel " %}{{ parcel.section }} - {{parcel.parcel_number}} - {% endfor %} - {% empty %} - {% trans "No context record associated to this operation (no parcel)" %} + {% trans "No context record associated to this operation" %} {% endfor %} -- cgit v1.2.3