diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-10-16 23:29:41 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-10-16 23:29:41 +0200 |
commit | 78cb0d4794a80c99e17f96a06e68951d5221d0f8 (patch) | |
tree | ceac818ab232d6fb74289ab31571de56086d7bb5 /archaeological_context_records/templates | |
parent | c5bf89a4177c3f40a9b02e721bdcc5e85fc136bf (diff) | |
download | Ishtar-78cb0d4794a80c99e17f96a06e68951d5221d0f8.tar.bz2 Ishtar-78cb0d4794a80c99e17f96a06e68951d5221d0f8.zip |
List and export context record relations (refs #3329)
Diffstat (limited to 'archaeological_context_records/templates')
-rw-r--r-- | archaeological_context_records/templates/ishtar/sheet_contextrecord.html | 30 |
1 files changed, 3 insertions, 27 deletions
diff --git a/archaeological_context_records/templates/ishtar/sheet_contextrecord.html b/archaeological_context_records/templates/ishtar/sheet_contextrecord.html index bd883ac0b..907697c9e 100644 --- a/archaeological_context_records/templates/ishtar/sheet_contextrecord.html +++ b/archaeological_context_records/templates/ishtar/sheet_contextrecord.html @@ -55,36 +55,12 @@ </ul> {% endif %} +{% trans "Context record relations" as cr_rels %} {% if item.right_relations.count %} -<h3>{% trans "In relation with"%}</h3> -<div class='clean-table'> -<div class='clean-table-wrap'> -<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'> </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 ''%}")'><i class="fa fa-info-circle" aria-hidden="true"></i></a></td> - </tr> - {% endfor %} -</table> -</div></div> - +{% dynamic_table_document cr_rels 'context_records_relations' 'left_record' item.pk '' output %} {% endif %} + {% if item.operation %} <h3>{% trans "Operation summary"%}</h3> {% if not item.operation.code_patriarche %} |