From 3eff8cc19f8f8ef237788c752cb7c937195bb7e6 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 24 Aug 2016 13:39:32 +0200 Subject: UI: adpat all sheet to the new layout. Administrativ act: can modify from sheet. Organization: can modify from sheet. --- .../templates/ishtar/blocks/window_file_nav.html | 12 ++++++++++ .../templates/ishtar/sheet_file.html | 27 ++++------------------ 2 files changed, 17 insertions(+), 22 deletions(-) create mode 100644 archaeological_files/templates/ishtar/blocks/window_file_nav.html (limited to 'archaeological_files/templates') diff --git a/archaeological_files/templates/ishtar/blocks/window_file_nav.html b/archaeological_files/templates/ishtar/blocks/window_file_nav.html new file mode 100644 index 000000000..149603af8 --- /dev/null +++ b/archaeological_files/templates/ishtar/blocks/window_file_nav.html @@ -0,0 +1,12 @@ +{% extends "ishtar/blocks/window_nav.html" %} +{% load i18n %} +{% load url from future %} +{% block extra_actions %} + + + + + +
{%trans "Add an operation for this file" %} +
+{% endblock %} 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}} -

{% trans "Archaeological file"%}

-{% endblock %} +{% block head_title %}{% trans "Archaeological file" %}{% endblock %} {% block content %} -{% if previous or next %} -
-{%if previous%} -{%trans "Previous version"%} ({{previous}}) -{% endif %} -{% if previous and next %} - {% endif %} -{%if next%} -Rollback - -{%trans "Next version"%} ({{next}}) -{% endif %} -
-{% endif %} -
{%trans "Export as:"%} {%trans "OpenOffice.org file"%}, {%trans "PDF file"%}
-
-
{% trans "Modify" %}
{% if can_add_operation %} -
{%trans "Add an associated archaeological operation"%}
- +{% 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%}

{% trans "General"%}

-- cgit v1.2.3