diff options
-rw-r--r-- | ishtar/templates/sheet_operation.html | 66 |
1 files changed, 66 insertions, 0 deletions
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 %} </table> +<h3>{% trans "Documentation"%}</h3> +<table> + <caption>{%trans "Documents"%}</caption> + <tr> + <th>{% trans "Title" %}</th> + <th>{% trans "Type" %}</th> + <th>{% trans "Authors" %}</th> + <th>{% trans "Localisation" %}</th> + </tr> + {% for doc in item.doc.all %} + <tr> + <td>{{ doc.title }}</td> + <td class='string'>{{doc.type}}</td> + <td>{{ doc.author.all|join:", " }}</td> + <td>{{ doc.localisation }}</td> + </tr> + {% empty %} + <tr><td colspan="4" class='no_items'>{% trans "No document associated to this operation" %}</td></tr> + {% endfor %} +</table> + <table> <caption>{%trans "Context records"%}</caption> <tr> @@ -125,4 +146,49 @@ {% endfor %} </table> +<table> + <caption>{%trans "Finds"%}</caption> + <tr> + <th>{% trans "Find" %}</th> + <th>{% trans "Material type" %}</th> + <th>{% trans "Context record" %}</th> + <th>{% trans "Periods" %}</th> + <th>{% trans "Description" %}</th> + <th>{% trans "Weight" %}</th> + <th>{% trans "Numbers" %}</th> + <th>{% trans "Parcel" %}</th> + <th class='link'> </th> + </tr> + {% for parcel in item.parcels.all %} + {% for context_record in parcel.context_record.all %} + {% for find in context_record.base_items.all %} + <tr> + <td>{{ find.full_label }}</td> +{# Displayed as (Patriarche operation code)-(Record unit label)-(Finds label). #} +{# or displayed as (Year)-(index)-(Record unit label)-(Finds label). #} + <td>{{ find.get_last_item.material_type_label }}</td> +{# 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) #} + + <td class='string'>{{find.context_record.short_label}}</td> + <td>{{ find.get_last_item.dating}}</td>{# TODO .all|join:", " ? #} + <td>{{ find.get_last_item.description }}</td> + <td>{{ find.get_last_item.weight }}</td> + <td>{{ find.get_last_item.item_number }}</td> + <td>{{ item.context_record.parcel.short_label }}</td> + <td class='link'><a href="#">{% trans "Details" %}</a></td> + {#<a href="#" onclick='load_window("{% url show-find find.pk%}");'>{%trans "Details"%}</a></td>#} + </tr> + {% empty %} + <tr><td colspan="9" class='no_items'>{% trans "No find associated to context record:" %} {{context_record.short_label}}</td></tr> + {% endfor %} + {% empty %} + <tr><td colspan="9" class='no_items'>{% trans "No context record associated to parcel:" %} {{parcel.short_label}}</td></tr> + {% endfor %} + {% empty %} + <tr><td colspan="9" class='no_items'>{% trans "No parcel associated to this operation" %}</td></tr> + {% endfor %} +</table> + + {% endblock %} |