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 | |
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)
3 files changed, 24 insertions, 4 deletions
diff --git a/archaeological_context_records/templates/ishtar/sheet_contextrecord.html b/archaeological_context_records/templates/ishtar/sheet_contextrecord.html index 003e7d89b..355e76abc 100644 --- a/archaeological_context_records/templates/ishtar/sheet_contextrecord.html +++ b/archaeological_context_records/templates/ishtar/sheet_contextrecord.html @@ -82,14 +82,14 @@ <th>{% trans "Title" %}</th> <th>{% trans "Type" %}</th> <th>{% trans "Authors" %}</th> - {#<th>{% trans "Localisation" %}</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>{{ doc.localisation }}</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 context record" %}</td></tr> 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 %} diff --git a/archaeological_operations/templates/ishtar/sheet_operation.html b/archaeological_operations/templates/ishtar/sheet_operation.html index a85002702..fd4c4d021 100644 --- a/archaeological_operations/templates/ishtar/sheet_operation.html +++ b/archaeological_operations/templates/ishtar/sheet_operation.html @@ -103,14 +103,14 @@ <th>{% trans "Title" %}</th> <th>{% trans "Type" %}</th> <th>{% trans "Authors" %}</th> - {#<th>{% trans "Localisation" %}</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>{{ doc.localisation }}</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 scientific document associated to this operation" %}</td></tr> |