diff options
| author | Étienne Loks <etienne.loks@peacefrogs.net> | 2011-07-03 19:07:23 +0200 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2011-07-03 19:07:23 +0200 |
| commit | 867cd6346514e040b21fa38fdc52ec0e82d1827d (patch) | |
| tree | b31f549830db280869f0e63ff42d4c8fa758c6b1 | |
| parent | 78c510e0901d4b7d32e0de3796f1883a8d939e42 (diff) | |
| download | Ishtar-867cd6346514e040b21fa38fdc52ec0e82d1827d.tar.bz2 Ishtar-867cd6346514e040b21fa38fdc52ec0e82d1827d.zip | |
Correct context record in operation sheet (closes #504)
| -rw-r--r-- | ishtar/templates/sheet_operation.html | 10 |
1 files 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 @@ <th>{% trans "Parcel" %}</th> <th class='link'> </th> </tr> - {% for parcel in item.parcels.all %} {% for context_record in item.context_record.all %} <tr> <td>{{ context_record.label }}</td> <td class='string'>{{context_record.unit}}</td> - <td>{{ context_record.datings.all|join:", " }}</td>{# periods ?#} + <td class='string'>{{ context_record.datings.all|join:", " }}</td>{# periods ?#} <td class='string'>{{ context_record.description }}</td> - <td>{{ parcel.section }} - {{parcel.parcel_number}}</td> + <td class='string'>{{ context_record.parcel.section }} - {{context_record.parcel.parcel_number}}</td> <td class='link'><a href="#" onclick='load_window("{%url show-contextrecord context_record.pk ''%}")'>{% trans "Details" %}</a></td> </tr> {% empty %} - <tr><td colspan="6" class='no_items'>{% trans "No context record associated to parcel " %}{{ parcel.section }} - {{parcel.parcel_number}}</td></tr> - {% endfor %} - {% empty %} - <tr><td colspan="6" class='no_items'>{% trans "No context record associated to this operation (no parcel)" %}</td></tr> + <tr><td colspan="6" class='no_items'>{% trans "No context record associated to this operation" %}</td></tr> {% endfor %} </table> |
