diff options
Diffstat (limited to 'archaeological_finds/templates/ishtar/sheet_find.html')
-rw-r--r-- | archaeological_finds/templates/ishtar/sheet_find.html | 27 |
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> </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 %} |