From 1018402b846572b2bc348c0e6e0865527915afdb Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 30 Aug 2013 11:22:32 +0200 Subject: Templates: add link to doc tables - add a doc table to find sheet (refs #1350) --- .../templates/ishtar/sheet_contextrecord.html | 4 ++-- .../templates/ishtar/sheet_find.html | 20 ++++++++++++++++++++ .../templates/ishtar/sheet_operation.html | 4 ++-- 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 @@ {% trans "Title" %} {% trans "Type" %} {% trans "Authors" %} - {#{% trans "Localisation" %}#} + {% trans "Link" %} {% for doc in item.source.all %} {{ doc.title }} {{doc.source_type}} {{ doc.authors.all|join:", " }} - {#{{ doc.localisation }}#} + {% if doc.associated_url %}{% trans "Link"%}{% endif %} {% empty %} {% trans "No document associated to this context record" %} 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 %}
{% endif %} {% endfor %} + + + + + + + + + {% for doc in item.source.all %} + + + + + + + {% empty %} + + {% endfor %} +
{%trans "Documents"%}
{% trans "Title" %}{% trans "Type" %}{% trans "Authors" %}{% trans "Link" %}
{{ doc.title }}{{doc.source_type}}{{ doc.authors.all|join:", " }}{% if doc.associated_url %}{% trans "Link"%}{% endif %}
{% trans "No document associated to this find" %}
+ {% 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 @@ {% trans "Title" %} {% trans "Type" %} {% trans "Authors" %} - {#{% trans "Localisation" %}#} + {% trans "Link" %} {% for doc in item.source.all %} {{ doc.title }} {{doc.source_type}} {{ doc.authors.all|join:", " }} - {#{{ doc.localisation }}#} + {% if doc.associated_url %}{% trans "Link"%}{% endif %} {% empty %} {% trans "No scientific document associated to this operation" %} -- cgit v1.2.3