diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-05-07 10:39:18 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-05-07 10:39:18 +0200 |
commit | d78bac61acf7ffd09f0d33e3bb0fe1458ca3c1ad (patch) | |
tree | 3d4bc475576377901d85ae9b72ae956815474c9c /archaeological_operations/templates | |
parent | 9fec6d201e9f7645fe6e82ca6fc55be9e1ec6c9a (diff) | |
download | Ishtar-d78bac61acf7ffd09f0d33e3bb0fe1458ca3c1ad.tar.bz2 Ishtar-d78bac61acf7ffd09f0d33e3bb0fe1458ca3c1ad.zip |
Sheets: display parcel address
Diffstat (limited to 'archaeological_operations/templates')
-rw-r--r-- | archaeological_operations/templates/ishtar/blocks/window_tables/parcels.html | 8 | ||||
-rw-r--r-- | archaeological_operations/templates/ishtar/sheet_operation.html | 2 |
2 files changed, 6 insertions, 4 deletions
diff --git a/archaeological_operations/templates/ishtar/blocks/window_tables/parcels.html b/archaeological_operations/templates/ishtar/blocks/window_tables/parcels.html index 6e7929ab5..c748b1530 100644 --- a/archaeological_operations/templates/ishtar/blocks/window_tables/parcels.html +++ b/archaeological_operations/templates/ishtar/blocks/window_tables/parcels.html @@ -6,17 +6,19 @@ <th>{% trans "Town" %}</th> <th>{% trans "Year" %}</th> <th>{% trans "Section" %}</th> - <th>{% trans "Parcels" %}</th> + <th>{% trans "Parcel" %}</th> + <th>{% trans "Address" %}</th> {#<th>{% trans "Owner" %}</th>#} </tr> </thead> <tbody> - {% for parcel in item.grouped_parcels %} + {% for parcel in item.parcels.all %} <tr> <td class='string'>{{parcel.town}}</td> <td>{{parcel.year|default_if_none:"-"}}</td> <td>{{parcel.section|default_if_none:"-"}}</td> - <td>{{parcel.parcel_numbers|join:", "}}</td> + <td>{{parcel.parcel_number|default_if_none:"-"}}</td> + <td>{{parcel.address|default_if_none:"-"}}</td> {#<td class='string'>{{operation.parcel.owner}}</td>#} </tr> {% empty %} diff --git a/archaeological_operations/templates/ishtar/sheet_operation.html b/archaeological_operations/templates/ishtar/sheet_operation.html index 2afdb6c4c..88fa2356a 100644 --- a/archaeological_operations/templates/ishtar/sheet_operation.html +++ b/archaeological_operations/templates/ishtar/sheet_operation.html @@ -302,7 +302,7 @@ {% dynamic_table_document archaeologicalsites_label 'sites' 'operations' item.pk '' output %} {% endif %} - {% if item.grouped_parcels %} + {% if item.parcels.count %} {% trans "Associated parcels" as parcels_label %} {% include "ishtar/blocks/window_tables/parcels.html" %} {% endif %} |