summaryrefslogtreecommitdiff
path: root/archaeological_finds/templates/ishtar/sheet_find.html
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_finds/templates/ishtar/sheet_find.html')
-rw-r--r--archaeological_finds/templates/ishtar/sheet_find.html27
1 files changed, 16 insertions, 11 deletions
diff --git a/archaeological_finds/templates/ishtar/sheet_find.html b/archaeological_finds/templates/ishtar/sheet_find.html
index 741eb0d16..1efec9c6c 100644
--- a/archaeological_finds/templates/ishtar/sheet_find.html
+++ b/archaeological_finds/templates/ishtar/sheet_find.html
@@ -1,5 +1,6 @@
{% extends "ishtar/sheet.html" %}
{% load i18n window_field from_dict link_to_window window_tables humanize %}
+{% load url from future %}
{% block head_sheet %}
{{block.super}}
@@ -11,18 +12,18 @@
{% if previous or next %}
<div class='tool'>
{% if previous %}
-<a href="#" onclick='load_window("{% url show-historized-find item.pk previous|date:"c"%}");$("#{{window_id}}").hide();return false;'>{%trans "Previous version"%} ({{previous}})</a>
+<a href="#" onclick='load_window("{% url 'show-historized-find' item.pk previous|date:"c"%}");$("#{{window_id}}").hide();return false;'>{%trans "Previous version"%} ({{previous}})</a>
{% endif %}
{% if previous and next %} - {% endif %}
{%if next%}
-<a href="#" onclick='if(confirm("{%trans "Are you sure to rollback to this version?"%}")){load_url("{% url revert-find item.pk item.history_date|date:"c"%}");closeAllWindows();load_window("{% url show-find item.pk None %}");}'>Rollback</a> -
-<a href="#" onclick='load_window("{% url show-historized-find item.pk next|date:"c" %}");$("#{{window_id}}").hide();return false;'>{%trans "Next version"%} ({{next}})</a>
+<a href="#" onclick='if(confirm("{%trans "Are you sure to rollback to this version?"%}")){load_url("{% url 'revert-find' item.pk item.history_date|date:"c"%}");closeAllWindows();load_window("{% url 'show-find' item.pk None %}");}'>Rollback</a> -
+<a href="#" onclick='load_window("{% url 'show-historized-find' item.pk next|date:"c" %}");$("#{{window_id}}").hide();return false;'>{%trans "Next version"%} ({{next}})</a>
{% endif %}
</div>
{% endif %}
-<div class='tool'>{%trans "Export as:"%} <a href='{% url show-find item.pk "odt" %}'>{%trans "OpenOffice.org file"%}</a>, <a href='{% url show-find item.pk "pdf" %}'>{%trans "PDF file"%}</a></div>
-<div class='tool modify'><a href='{% url find_modify item.pk %}'>{% trans "Modify" %}</a></div>
+<div class='tool'>{%trans "Export as:"%} <a href='{% url 'show-find' item.pk "odt" %}'>{%trans "OpenOffice.org file"%}</a>, <a href='{% url 'show-find' item.pk "pdf" %}'>{%trans "PDF file"%}</a></div>
+<div class='tool modify'><a href='{% url 'find_modify' item.pk %}'>{% trans "Modify" %}</a></div>
{% if item.image %}
<a href='{{item.image.url}}' rel="prettyPhoto" title="{{item.label}}" class='photo'><img src='{{item.thumbnail.url}}'/></a>
@@ -84,15 +85,15 @@
</ul>
{% if item.upstream_treatment or item.downstream_treatment %}
-<h3>{% trans "Associated base finds"%}</h3>
+<h3>{% trans "Treatments"%}</h3>
{% if item.upstream_treatment %}
<table class='simple' id='{{window_id}}-upstream'>
<caption>{% trans "Upstream treatment" %}</caption>
<tr>
<th>{% trans "Type" %}</th>
- <th>{% trans "Related find" %}</th>
- <th>{% trans "Person" %}</th>
+ <th>{% trans "Related finds" %}</th>
+ <th>{% trans "Doer" %}</th>
<th>{% trans "Container" %}</th>
<th>{% trans "Start date" %}</th>
<th>{% trans "End date" %}</th>
@@ -108,6 +109,7 @@
</tr>
{% endfor %}
</table>
+<p class='tool'>{% trans "Export:" %} <a class='badge' href="{% url 'get-upstreamtreatment' 'csv' %}?submited=1&amp;find_id={{item.pk}}" target="_blank">{% trans "CSV" %}</a> ({{ENCODING}})</p>
{% endif %}
{% if item.downstream_treatment %}
@@ -115,8 +117,9 @@
<caption>{% trans "Downstream treatment" %}</caption>
<tr>
<th>{% trans "Type" %}</th>
- <th>{% trans "Related find" %}</th>
- <th>{% trans "Person" %}</th>
+ <th>{% trans "Related finds" %}</th>
+ <th>{% trans "Doer" %}</th>
+ <th>{% trans "Container" %}</th>
<th>{% trans "Start date" %}</th>
<th>{% trans "End date" %}</th>
</tr>
@@ -125,11 +128,13 @@
<td class='string'>{{ treatment.treatment_type }}</td>
<td class='item-list'>{% for item in items %}<span>{{item}} {{ item|link_to_window}}</span>{% endfor %}</td>
<td class='string'>{{ treatment.person|default_if_none:"" }}</td>
+ <td class='string'>{{ treatment.container|default_if_none:"-" }}</td>
<td class='string'>{{ treatment.start_date|default_if_none:"" }}</td>
<td class='string'>{{ treatment.end_date|default_if_none:"" }}</td>
</tr>
{% endfor %}
</table>
+<p class='tool'>{% trans "Export:" %} <a class='badge' href="{% url 'get-downstreamtreatment' 'csv' %}?submited=1&amp;find_id={{item.pk}}" target="_blank">{% trans "CSV" %}</a> ({{ENCODING}})</p>
{% endif %}
{% comment %}
@@ -191,7 +196,7 @@
<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">{% trans "Link"%}</a>{% endif %}</td>
+ <td class='string'>{% if doc.associated_url %}<a href='{{doc.associated_url}}' target="_blank">{{doc.associated_url}}</a>{% endif %}</td>
</tr>
{% empty %}
{% endfor %}