diff options
author | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-08-30 11:22:32 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-08-30 11:22:32 +0200 |
commit | cfa07b0526c908baa4848b63dbb4a7bb35e0bdaa (patch) | |
tree | 132eac66e87b320396f8e7e2ac455c09125f10d3 /archaeological_finds | |
parent | 911c9bfdbc0bffa79a1509e5709a8009db7d0938 (diff) | |
download | Ishtar-cfa07b0526c908baa4848b63dbb4a7bb35e0bdaa.tar.bz2 Ishtar-cfa07b0526c908baa4848b63dbb4a7bb35e0bdaa.zip |
Templates: add link to doc tables - add a doc table to find sheet (refs #1350)
Diffstat (limited to 'archaeological_finds')
-rw-r--r-- | archaeological_finds/templates/ishtar/sheet_find.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/archaeological_finds/templates/ishtar/sheet_find.html b/archaeological_finds/templates/ishtar/sheet_find.html index 9111eb409..223e07415 100644 --- a/archaeological_finds/templates/ishtar/sheet_find.html +++ b/archaeological_finds/templates/ishtar/sheet_find.html @@ -45,4 +45,24 @@ {% if forloop.counter0 %}<hr/>{% endif %} {% endfor %} +<table> + <caption>{%trans "Documents"%}</caption> + <tr> + <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 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}}'>{% trans "Link"%}</a>{% endif %}</td> + </tr> + {% empty %} + <tr><td colspan="4" class='no_items'>{% trans "No document associated to this find" %}</td></tr> + {% endfor %} +</table> + {% endblock %} |