diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-08-24 13:39:32 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-08-24 13:43:35 +0200 |
commit | 3eff8cc19f8f8ef237788c752cb7c937195bb7e6 (patch) | |
tree | 1233279285cfd418817a73611af98033230e6452 /archaeological_files/templates/ishtar/sheet_file.html | |
parent | 04835942422a50ee8a4d6c09046153a48ff1d2e7 (diff) | |
download | Ishtar-3eff8cc19f8f8ef237788c752cb7c937195bb7e6.tar.bz2 Ishtar-3eff8cc19f8f8ef237788c752cb7c937195bb7e6.zip |
UI: adpat all sheet to the new layout. Administrativ act: can modify from sheet. Organization: can modify from sheet.
Diffstat (limited to 'archaeological_files/templates/ishtar/sheet_file.html')
-rw-r--r-- | archaeological_files/templates/ishtar/sheet_file.html | 27 |
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> |