summaryrefslogtreecommitdiff
path: root/archaeological_files/templates/ishtar/sheet_file.html
diff options
context:
space:
mode:
Diffstat (limited to 'archaeological_files/templates/ishtar/sheet_file.html')
-rw-r--r--archaeological_files/templates/ishtar/sheet_file.html27
1 files changed, 5 insertions, 22 deletions
diff --git a/archaeological_files/templates/ishtar/sheet_file.html b/archaeological_files/templates/ishtar/sheet_file.html
index a5879b3ec..9ff6e8356 100644
--- a/archaeological_files/templates/ishtar/sheet_file.html
+++ b/archaeological_files/templates/ishtar/sheet_file.html
@@ -1,31 +1,14 @@
{% extends "ishtar/sheet.html" %}
-{% load i18n window_ope_tables window_field %}
+{% load i18n window_ope_tables window_field window_header %}
-{% block head_sheet %}
-{{block.super}}
-<h1>{% trans "Archaeological file"%}</h1>
-{% endblock %}
+{% block head_title %}{% trans "Archaeological file" %}{% endblock %}
{% block content %}
-{% if previous or next %}
-<div class='tool'>
-{%if previous%}
-<a href="#" onclick='load_window("{% url show-historized-file 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-file item.pk item.history_date|date:"c"%}");closeAllWindows();load_window("{% url show-file item.pk None %}");}'>Rollback</a> -
-<a href="#" onclick='load_window("{% url show-historized-file 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-file item.pk "odt" %}'>{%trans "OpenOffice.org file"%}</a>, <a href='{% url show-file item.pk "pdf" %}'>{%trans "PDF file"%}</a></div>
-<hr/>
-<div class='tool modify'><a href='{% url file_modify item.pk %}'>{% trans "Modify" %}</a></div>
{% if can_add_operation %}
-<div class='tool modify'><a href='{% url operation_add item.pk %}'>{%trans "Add an associated archaeological operation"%}</a></div>
-
+{% window_file_nav item window_id previous next %}
+{% else %}
+{% window_nav item window_id 'show-file' 'file_modify' 'show-historized-file' 'revert-file' previous next %}
{%endif%}
<h3>{% trans "General"%}</h3>