From a296bd385e704b1e76a774341f8ad126c892ccab Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Tue, 29 Dec 2015 18:26:54 +0100 Subject: Add a template for operation sources --- .../templates/ishtar/sheet_operationsource.html | 15 +++++++++++++++ .../templates/ishtar/sheet_operationsource_pdf.html | 18 ++++++++++++++++++ .../templates/ishtar/sheet_operationsource_window.html | 3 +++ 3 files changed, 36 insertions(+) create mode 100644 archaeological_operations/templates/ishtar/sheet_operationsource.html create mode 100644 archaeological_operations/templates/ishtar/sheet_operationsource_pdf.html create mode 100644 archaeological_operations/templates/ishtar/sheet_operationsource_window.html (limited to 'archaeological_operations/templates') diff --git a/archaeological_operations/templates/ishtar/sheet_operationsource.html b/archaeological_operations/templates/ishtar/sheet_operationsource.html new file mode 100644 index 000000000..5e2a39826 --- /dev/null +++ b/archaeological_operations/templates/ishtar/sheet_operationsource.html @@ -0,0 +1,15 @@ +{% extends "ishtar/sheet_source.html" %} +{% load i18n window_field link_to_window %} + +{% block head_sheet %} +{{block.super}} +

{% trans "Operation source"%}

+{% endblock %} + +{% block export %} +
{%trans "Export as:"%} {%trans "OpenOffice.org file"%}, {%trans "PDF file"%}
+{% endblock %} + +{% block related %} +{% field "Related operation" item.owner '' item.owner|link_to_window %} +{% endblock %} diff --git a/archaeological_operations/templates/ishtar/sheet_operationsource_pdf.html b/archaeological_operations/templates/ishtar/sheet_operationsource_pdf.html new file mode 100644 index 000000000..32362d4c2 --- /dev/null +++ b/archaeological_operations/templates/ishtar/sheet_operationsource_pdf.html @@ -0,0 +1,18 @@ +{% extends "ishtar/sheet_operationsource.html" %} +{% block header %} + +{% endblock %} +{% block main_head %} +{{ block.super }} +
+Ishtar – {{APP_NAME}} – {{item}} +
+{% endblock %} +{%block head_sheet%}{%endblock%} +{%block main_foot%} +
+– – +
+ + +{%endblock%} diff --git a/archaeological_operations/templates/ishtar/sheet_operationsource_window.html b/archaeological_operations/templates/ishtar/sheet_operationsource_window.html new file mode 100644 index 000000000..8cd2c7fa1 --- /dev/null +++ b/archaeological_operations/templates/ishtar/sheet_operationsource_window.html @@ -0,0 +1,3 @@ +{% extends "ishtar/sheet_operationsource.html" %} +{% block main_head %}{%endblock%} +{% block main_foot %}{%endblock%} -- cgit v1.2.3