blob: 714bfa76292014f3a5c58afe18ec27b90f51c3ed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
{% load i18n %}
{% block main_head %}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>{% block title %}Ishtar{% if APP_NAME %} - {{APP_NAME}}{%endif%}{% endblock %}
</title>
{% block header %}
<link rel="stylesheet" href="{{STATIC_URL}}/media/style.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='#' class='previous_page ui-icon ui-icon-circle-arrow-w'>{% trans "Previous" %}</a>
<a href='#' onclick='$("#{{window_id}}").hide("slow")'>{% trans "Close" %}</a> -
<a href='#' onclick='closeAllWindows();'>{% trans "Close all windows" %}</a>
<a href='#' class='next_page ui-icon ui-icon-circle-arrow-e'>{% trans "Next" %}</a>
</div>
<script type="text/javascript" language='javascript'>
jQuery(document).ready(function(){
if (! get_next_table_id({{item.pk}})){
jQuery('.next_page').hide();
}
if (! get_previous_table_id({{item.pk}})){
jQuery('.previous_page').hide();
}
jQuery(".next_page").click(function() {
load_window("{{current_window_url}}" + get_next_table_id({{item.pk}}) + "/",
'', function(){$("#{{window_id}}").hide();});
});
jQuery(".previous_page").click(function() {
load_window("{{current_window_url}}" + get_previous_table_id({{item.pk}}) + "/",
'', function(){$("#{{window_id}}").hide();});
});
});
</script>
{% endblock %}
{% block header_title %}{% endblock %}
<div class="body">
{% block toolbar %}{% endblock %}
{% block content %}
{% endblock %}
</div>
</div>
{%block main_foot%}
</body>
</html>
{%endblock%}
|