summaryrefslogtreecommitdiff
path: root/ishtar/templates
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2011-03-29 03:14:01 +0200
committerÉtienne Loks <etienne.loks@peacefrogs.net>2011-03-29 03:14:01 +0200
commit33cb859e2dc08e418aedcc29eb6c576aaf2926ad (patch)
tree7b671fce69843ff607ead32daff6f3da96068c0d /ishtar/templates
parentf89463697bfac074afec9322625307a96cb13438 (diff)
downloadIshtar-33cb859e2dc08e418aedcc29eb6c576aaf2926ad.tar.bz2
Ishtar-33cb859e2dc08e418aedcc29eb6c576aaf2926ad.zip
Correct PDF export (closes #306)
Diffstat (limited to 'ishtar/templates')
-rw-r--r--ishtar/templates/base.html2
-rw-r--r--ishtar/templates/search.html3
-rw-r--r--ishtar/templates/sheet.html7
-rw-r--r--ishtar/templates/sheet_file_pdf.html4
-rw-r--r--ishtar/templates/sheet_operation_pdf.html4
5 files changed, 16 insertions, 4 deletions
diff --git a/ishtar/templates/base.html b/ishtar/templates/base.html
index 7bfc579bb..630fe666e 100644
--- a/ishtar/templates/base.html
+++ b/ishtar/templates/base.html
@@ -4,7 +4,7 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
- <link rel="shortcut icon" href="{{MEDIA_URL}}/media/images/favicon.png">
+ <link rel="shortcut icon" href="{{MEDIA_URL}}/media/images/favicon.png"/>
<title>{% block title %}Ishtar{% if APP_NAME %} - {{APP_NAME}}{%endif%}{% endblock %}
</title>
<script language="javascript" type="text/javascript">
diff --git a/ishtar/templates/search.html b/ishtar/templates/search.html
index 5787cb2c6..1b5829820 100644
--- a/ishtar/templates/search.html
+++ b/ishtar/templates/search.html
@@ -5,6 +5,9 @@
{{form.media}}
{% endblock %}
{% block content %}
+<ul id='form_path'>
+ <li class='current'>&raquo;&nbsp;<a href='#'>{{form.form_label}}</a></li>
+</ul>
<div class='form'>
{% if form.forms %}
<div class='top_button'><input type="submit" id="submit_form" value="{% trans "Validate" %}"/></div>
diff --git a/ishtar/templates/sheet.html b/ishtar/templates/sheet.html
index 8da56345c..e2d1cc6c0 100644
--- a/ishtar/templates/sheet.html
+++ b/ishtar/templates/sheet.html
@@ -4,21 +4,22 @@
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
- <link rel="shortcut icon" href="{{MEDIA_URL}}/media/images/favicon.png">
<title>{% block title %}Ishtar{% if APP_NAME %} - {{APP_NAME}}{%endif%}{% endblock %}
</title>
+ {% block css_head %}
<link rel="stylesheet" href="{{MEDIA_URL}}/media/style.css" />
- <link rel="stylesheet" href="{{MEDIA_URL}}/media/style_basic.css" />
+ {% endblock %}
</head>
<body>
{% endblock %}
<div class="sheet" id='{{window_id}}'>
+{% block head_sheet %}
<script type="text/javascript">var last_window='{{window_id}}';</script>
<div class="head">
<a href='#' onclick='$("#{{window_id}}").hide("slow")'>{% trans "Close" %}</a> -
<a href='#' onclick='$("#window > div").hide("slow");$("#window").html("")'>
{% trans "Close all windows" %}
-</a></div>
+</a></div>{% endblock %}
<div class="body">
{% block content %}{% endblock %}
</div>
diff --git a/ishtar/templates/sheet_file_pdf.html b/ishtar/templates/sheet_file_pdf.html
index 2a23cb6a4..3c77c75f8 100644
--- a/ishtar/templates/sheet_file_pdf.html
+++ b/ishtar/templates/sheet_file_pdf.html
@@ -1,10 +1,14 @@
{% extends "sheet_file.html" %}
+{% block css_head %}
+<link rel="stylesheet" href="{{MEDIA_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;
diff --git a/ishtar/templates/sheet_operation_pdf.html b/ishtar/templates/sheet_operation_pdf.html
index 30f9595bf..3397d5f43 100644
--- a/ishtar/templates/sheet_operation_pdf.html
+++ b/ishtar/templates/sheet_operation_pdf.html
@@ -1,10 +1,14 @@
{% extends "sheet_operation.html" %}
+{% block css_head %}
+<link rel="stylesheet" href="{{MEDIA_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;