diff options
| author | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-09-18 23:31:21 +0200 |
|---|---|---|
| committer | Étienne Loks <etienne.loks@peacefrogs.net> | 2013-09-18 23:31:21 +0200 |
| commit | 08967c9a904b6380c6f794eb934038a3cfa65839 (patch) | |
| tree | da01a65898d1ddc8601d7dc4e04cc5b2f384c38a /archaeological_operations/templates | |
| parent | 36a54b1d288a9dd4d2be9d26aeebf68d6364cb54 (diff) | |
| download | Ishtar-08967c9a904b6380c6f794eb934038a3cfa65839.tar.bz2 Ishtar-08967c9a904b6380c6f794eb934038a3cfa65839.zip | |
Add history navigation for operations, context records and finds (refs #1401)
Diffstat (limited to 'archaeological_operations/templates')
| -rw-r--r-- | archaeological_operations/templates/ishtar/sheet_operation.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/archaeological_operations/templates/ishtar/sheet_operation.html b/archaeological_operations/templates/ishtar/sheet_operation.html index fd4c4d021..06c30b9e7 100644 --- a/archaeological_operations/templates/ishtar/sheet_operation.html +++ b/archaeological_operations/templates/ishtar/sheet_operation.html @@ -1,7 +1,22 @@ {% extends "ishtar/sheet.html" %} {% load i18n %} {% block content %} + +{% if previous or next %} +<div class='tool'> +{%if previous%} +<a href="#" onclick='load_window("{% url show-historized-operation 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-operation item.pk item.history_date|date:"c"%}");closeAllWindows();load_window("{% url show-operation item.pk None %}");}'>Rollback</a> - +<a href="#" onclick='load_window("{% url show-historized-operation 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-operation item.pk "odt" %}'>{%trans "OpenOffice.org file"%}</a>, <a href='{% url show-operation item.pk "pdf" %}'>{%trans "PDF file"%}</a></div> + <h3>{% trans "General"%}</h3> {% if item.common_name %}<p><label>{%trans "Name:"%}</label> <span class='value'>{{ item.common_name }}</span></p>{% endif %} <p><label>{%trans "Year:"%}</label> <span class='value'>{{ item.year }}</span></p> |
