/usr/share/pyshared/zc/table/batching.pt is in python-zc.table 0.9.0-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 | <script type="text/javascript" lang="Javascript1.1">
function zc_table_batching_do_it(el, direction) {
var element_name = el.attributes.batch_change_name.value;
var element = document.getElementById(element_name);
element.value = direction;
element.form.submit();
}
</script>
<input type="hidden" value="" tal:attributes="
name view/batch_change_name;
id view/batch_change_name;" />
<input
type="hidden"
tal:attributes="
name view/batch_start_name;
id view/batch_start_name;
value view/batch_start;
" />
<div
style="text-align: center; font-weight: bold"
tal:condition="python:
(view.items and (
(view.previous_batch_start is not None) or
(view.next_batch_start is not None)))"
i18n:domain="zc.table"
class="zc-table-batching-pager">
<a
style="margin-right: 1ex"
tal:attributes="batch_change_name view/batch_change_name"
tal:condition="python: view.previous_batch_start is not None"
href=""
onclick="javascript:zc_table_batching_do_it(this, 'back'); return false"
class="zc-table-batching-pager-prev"
>< <span i18n:translate="">Prev</span></a>
<span
style="margin-right: 1ex"
tal:condition="python: view.previous_batch_start is None"
class="zc-table-batching-pager-prev"
>< <span i18n:translate="">Prev</span></span>
<a
tal:attributes="batch_change_name view/batch_change_name"
tal:condition="python: view.next_batch_start is not None"
onclick="javascript:zc_table_batching_do_it(this, 'next'); return false"
href=""
class="zc-table-batching-pager-next"
><span i18n:translate="">Next</span> ></a>
<span
style="margin-right: 1ex"
tal:condition="python: view.next_batch_start is None"
class="zc-table-batching-pager-next"
><span i18n:translate="">Next</span> ></span>
</div>
|