summaryrefslogtreecommitdiff
path: root/archaeological_context_records/templates
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2013-08-25 20:57:08 +0200
committerÉtienne Loks <etienne.loks@peacefrogs.net>2013-08-25 20:57:08 +0200
commita698072bb49a58e376aeef138260d3df197a3f64 (patch)
tree7d5c1e2558f4ef72332dcb9dbc1417fd7764f863 /archaeological_context_records/templates
parent0be7b37a5490f982fe835143d9684aa06bfe7be3 (diff)
downloadIshtar-a698072bb49a58e376aeef138260d3df197a3f64.tar.bz2
Ishtar-a698072bb49a58e376aeef138260d3df197a3f64.zip
Add missing PDF templates - fix bad link in context record sheetfile
Diffstat (limited to 'archaeological_context_records/templates')
-rw-r--r--archaeological_context_records/templates/ishtar/sheet_contextrecord.html2
-rw-r--r--archaeological_context_records/templates/ishtar/sheet_contextrecord_pdf.html18
2 files changed, 19 insertions, 1 deletions
diff --git a/archaeological_context_records/templates/ishtar/sheet_contextrecord.html b/archaeological_context_records/templates/ishtar/sheet_contextrecord.html
index 38c8d2160..003e7d89b 100644
--- a/archaeological_context_records/templates/ishtar/sheet_contextrecord.html
+++ b/archaeological_context_records/templates/ishtar/sheet_contextrecord.html
@@ -1,7 +1,7 @@
{% extends "ishtar/sheet.html" %}
{% load i18n %}
{% block content %}
-<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>
+<div class='tool'>{%trans "Export as:"%} <a href='{% url show-contextrecord item.pk "odt" %}'>{%trans "OpenOffice.org file"%}</a>, <a href='{% url show-contextrecord item.pk "pdf" %}'>{%trans "PDF file"%}</a></div>
<h3>{% trans "Context Record"%}</h3>
diff --git a/archaeological_context_records/templates/ishtar/sheet_contextrecord_pdf.html b/archaeological_context_records/templates/ishtar/sheet_contextrecord_pdf.html
new file mode 100644
index 000000000..f92dbea2e
--- /dev/null
+++ b/archaeological_context_records/templates/ishtar/sheet_contextrecord_pdf.html
@@ -0,0 +1,18 @@
+{% extends "ishtar/sheet_contextrecord.html" %}
+{% block header %}
+<link rel="stylesheet" href="{{STATIC_URL}}/media/style_basic.css" />
+{% endblock %}
+{% block main_head %}
+{{ block.super }}
+<div id="pdfheader">
+Ishtar &ndash; {{APP_NAME}} &ndash; {{item}}
+</div>
+{% endblock %}
+{%block head_sheet%}{%endblock%}
+{%block main_foot%}
+<div id="pdffooter">
+&ndash; <pdf:pagenumber/> &ndash;
+</div>
+</body>
+</html>
+{%endblock%}