summaryrefslogtreecommitdiff
path: root/archaeological_context_records/templates
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@proxience.com>2015-01-29 02:14:03 +0100
committerÉtienne Loks <etienne.loks@proxience.com>2015-01-29 02:14:03 +0100
commite76c7fe40248300204f44417653b39ab9bc9d4a1 (patch)
treef6289016093b1830070861cdc4acc605a19fb8d5 /archaeological_context_records/templates
parentc7d253fc94038cd3eb20e190581eff3b461e463b (diff)
downloadIshtar-e76c7fe40248300204f44417653b39ab9bc9d4a1.tar.bz2
Ishtar-e76c7fe40248300204f44417653b39ab9bc9d4a1.zip
Add new fields to context record, find sheets.
Diffstat (limited to 'archaeological_context_records/templates')
-rw-r--r--archaeological_context_records/templates/ishtar/sheet_contextrecord.html27
1 files changed, 27 insertions, 0 deletions
diff --git a/archaeological_context_records/templates/ishtar/sheet_contextrecord.html b/archaeological_context_records/templates/ishtar/sheet_contextrecord.html
index 308c20289..1a18f1cd5 100644
--- a/archaeological_context_records/templates/ishtar/sheet_contextrecord.html
+++ b/archaeological_context_records/templates/ishtar/sheet_contextrecord.html
@@ -64,6 +64,33 @@
{% if item.tpq_estimated %}<p><label>{% trans "TPQ estimated:" %}</label> <span class='value'>{{ item.tpq_estimated }}</span></p>{%endif%}
{%endif%}
+{% if item.right_relations.count %}
+<h3>{% trans "In relation with"%}</h3>
+<table>
+ <tr>
+ <th>{% trans "Relation type" %}</th>
+ <th>{% trans "ID" %}</th>
+ <th>{% trans "Type" %}</th>
+ <th>{% trans "Chronology" %}</th>
+ <th>{% trans "Description" %}</th>
+ <th>{% trans "Parcel" %}</th>
+ <th class='link'>&nbsp;</th>
+ </tr>
+ {% for relation in item.right_relations.all %}
+ <tr>
+ <td class='string'>{{ relation.relation_type }}</td>
+ <td class='string'>{{ relation.right_record.label }}</td>
+ <td class='string'>{{relation.right_record.unit|default:""}}</td>
+ <td class='string'>{{ relation.right_record.datings.all|join:", " }}</td>{# periods ?#}
+ <td class='string'>{{ relation.right_record.description }}</td>
+ <td class='string'>{{ relation.right_record.parcel.section }} - {{relation.right_record.parcel.parcel_number}}</td>
+ <td class='link'><a href="#" class='display_details' onclick='load_window("{%url show-contextrecord relation.right_record.pk ''%}")'>{% trans "Details" %}</a></td>
+ </tr>
+ {% endfor %}
+<table>
+
+{% endif %}
+
{% if item.operation %}
<h3>{% trans "Operation resume"%}</h3>
<p><label>{%trans "Year:"%}</label> <span class='value'>{{ item.operation.year }}</span></p>