diff options
Diffstat (limited to 'ishtar_common/templates/ishtar/sheet.html')
-rw-r--r-- | ishtar_common/templates/ishtar/sheet.html | 30 |
1 files changed, 27 insertions, 3 deletions
diff --git a/ishtar_common/templates/ishtar/sheet.html b/ishtar_common/templates/ishtar/sheet.html index 9ce038ae9..915376938 100644 --- a/ishtar_common/templates/ishtar/sheet.html +++ b/ishtar_common/templates/ishtar/sheet.html @@ -15,11 +15,35 @@ <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></div>{% endblock %} +<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 %} <div class="body"> {% block content %}{% endblock %} </div> |