summaryrefslogtreecommitdiff
path: root/archaeological_finds/templates/ishtar/sheet_find.html
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2018-06-13 14:10:25 +0200
committerÉtienne Loks <etienne.loks@iggdrasil.net>2018-06-13 14:10:25 +0200
commit228275f656142f0df065d9036f03c84f62af9aa6 (patch)
treed552bc37447d963cbfa22a1c5cb072a7f9bb55f4 /archaeological_finds/templates/ishtar/sheet_find.html
parent773779d80c2161fc426302672e80fd92970ec2f0 (diff)
downloadIshtar-228275f656142f0df065d9036f03c84f62af9aa6.tar.bz2
Ishtar-228275f656142f0df065d9036f03c84f62af9aa6.zip
Sheet: display documents tables
Diffstat (limited to 'archaeological_finds/templates/ishtar/sheet_find.html')
-rw-r--r--archaeological_finds/templates/ishtar/sheet_find.html27
1 files changed, 3 insertions, 24 deletions
diff --git a/archaeological_finds/templates/ishtar/sheet_find.html b/archaeological_finds/templates/ishtar/sheet_find.html
index f22c17137..aa1f9bb12 100644
--- a/archaeological_finds/templates/ishtar/sheet_find.html
+++ b/archaeological_finds/templates/ishtar/sheet_find.html
@@ -296,30 +296,9 @@
{% endif %}
-{% if item.source.count %}
-<h3>{% trans "Documents"%}</h3>
-<table id='{{window_id}}-docs' class="table table-striped">
- <caption>{%trans "Documents"%}</caption>
- <tr>
- <th>&nbsp;</th>
- <th>{% trans "Title" %}</th>
- <th>{% trans "Type" %}</th>
- <th>{% trans "Authors" %}</th>
- <th>{% trans "Link" %}</th>
- </tr>
- {% for doc in item.source.all %}
- <tr>
- <td><a class="display_details" href="#"
- onclick="load_window('{% url 'show-findsource' doc.id %}/');"><i class="fa fa-info-circle" aria-hidden="true"></i>
- </a></td>
- <td class='string'>{{ doc.title }}</td>
- <td class='string'>{{ doc.source_type }}</td>
- <td class='string'>{{ doc.authors.all|join:", " }}</td>
- <td class='string'>{% if doc.associated_url %}<a href='{{doc.associated_url}}' target="_blank">{{doc.associated_url}}</a>{% endif %}</td>
- </tr>
- {% empty %}
- {% endfor %}
-</table>
+{% trans "Associated documents" as finds_docs %}
+{% if item.documents.count %}
+{% dynamic_table_document finds_docs 'documents' 'finds' item.pk '' output %}
{% endif %}
{% endblock %}