Lines 2-62
Link Here
|
2 |
[% USE Branches %] |
2 |
[% USE Branches %] |
3 |
[% USE KohaDates %] |
3 |
[% USE KohaDates %] |
4 |
|
4 |
|
|
|
5 |
[% SET footerjs = 1 %] |
5 |
[% INCLUDE 'doc-head-open.inc' %] |
6 |
[% INCLUDE 'doc-head-open.inc' %] |
6 |
[% IF bookseller %] |
7 |
[% IF bookseller %] |
7 |
<title>Koha › Basket groups for [% bookseller.name |html %]</title> |
8 |
<title>Koha › Basket groups for [% bookseller.name |html %]</title> |
8 |
[% ELSE %] |
9 |
[% ELSE %] |
9 |
<title>Koha › Basket groups</title> |
10 |
<title>Koha › Basket groups</title> |
10 |
[% END %] |
11 |
[% END %] |
11 |
|
12 |
[% INCLUDE 'doc-head-close.inc' %] |
12 |
[% Asset.css('css/datatables.css') %] |
13 |
[% Asset.css('css/datatables.css') %] |
13 |
[% INCLUDE 'doc-head-close.inc' %] |
|
|
14 |
[% INCLUDE 'datatables.inc' %] |
15 |
[% Asset.js('lib/jquery/plugins/jquery.dataTables.columnFilter.js') %] |
16 |
<script type="text/javascript"> |
17 |
$(document).ready(function() { |
18 |
var options = { |
19 |
"paging": false, |
20 |
"autoWidth": false, |
21 |
"columnDefs": [ |
22 |
{ "visible": false, "targets": 1 }, |
23 |
{ "orderable": false, "targets": -1 } |
24 |
], |
25 |
"orderFixed": [[ 1, 'asc' ]] |
26 |
}; |
27 |
[% UNLESS bookseller %] |
28 |
options.drawCallback = function(settings) { |
29 |
var api = this.api(); |
30 |
var rows = api.rows({page: 'current'}).nodes(); |
31 |
var last = null; |
32 |
|
33 |
api.column(1, {page: 'current'}).data().each(function(group, i) { |
34 |
if (last !== group) { |
35 |
$(rows).eq(i).before( |
36 |
'<tr><td class="group" colspan="8">' + group + '</td></tr>' |
37 |
); |
38 |
last = group; |
39 |
} |
40 |
}); |
41 |
}; |
42 |
[% END %] |
43 |
$("#basketgroups-table").kohaDataTable(options); |
44 |
|
45 |
$('#basketgroups-table').on('click', '.closeandprint', function(e) { |
46 |
e.preventDefault(); |
47 |
var w = window.open($(this).attr('href')); |
48 |
var timer = setInterval(function() { |
49 |
if (w.closed === true) { |
50 |
clearInterval(timer); |
51 |
window.location.reload(true); |
52 |
} |
53 |
}, 1000); |
54 |
}); |
55 |
$('#basketgroups-table').on('click', '.delete', function() { |
56 |
return confirm(_("Are you sure you want to delete this basketgroup ?")); |
57 |
}); |
58 |
}); |
59 |
</script> |
60 |
</head> |
14 |
</head> |
61 |
<body id="acq_basketgroup" class="acq"> |
15 |
<body id="acq_basketgroup" class="acq"> |
62 |
[% INCLUDE 'header.inc' %] |
16 |
[% INCLUDE 'header.inc' %] |
Lines 113-119
Link Here
|
113 |
Basket group no. [% basketgroup.id %] |
67 |
Basket group no. [% basketgroup.id %] |
114 |
[% END %] |
68 |
[% END %] |
115 |
</td> |
69 |
</td> |
116 |
<td>[% basketgroup.bookseller.name %]</td> |
70 |
<td>[% basketgroup.vendor.name %]</td> |
117 |
<td>[% Branches.GetName(basketgroup.billingplace) %]</td> |
71 |
<td>[% Branches.GetName(basketgroup.billingplace) %]</td> |
118 |
<td> |
72 |
<td> |
119 |
[% IF (basketgroup.freedeliveryplace) %] |
73 |
[% IF (basketgroup.freedeliveryplace) %] |
Lines 160-163
Link Here
|
160 |
[% INCLUDE 'acquisitions-menu.inc' %] |
114 |
[% INCLUDE 'acquisitions-menu.inc' %] |
161 |
</div> |
115 |
</div> |
162 |
</div> |
116 |
</div> |
|
|
117 |
|
118 |
[% MACRO jsinclude BLOCK %] |
119 |
[% INCLUDE 'datatables.inc' %] |
120 |
[% Asset.js('lib/jquery/plugins/jquery.dataTables.columnFilter.js') %] |
121 |
<script type="text/javascript"> |
122 |
$(document).ready(function() { |
123 |
var options = { |
124 |
"paging": false, |
125 |
"autoWidth": false, |
126 |
"columnDefs": [ |
127 |
{ "visible": false, "targets": 1 }, |
128 |
{ "orderable": false, "targets": -1 } |
129 |
], |
130 |
"orderFixed": [[ 1, 'asc' ]] |
131 |
}; |
132 |
[% UNLESS bookseller %] |
133 |
options.drawCallback = function(settings) { |
134 |
var api = this.api(); |
135 |
var rows = api.rows({page: 'current'}).nodes(); |
136 |
var last = null; |
137 |
|
138 |
api.column(1, {page: 'current'}).data().each(function(group, i) { |
139 |
if (last !== group) { |
140 |
$(rows).eq(i).before( |
141 |
'<tr><td class="group" colspan="8">' + group + '</td></tr>' |
142 |
); |
143 |
last = group; |
144 |
} |
145 |
}); |
146 |
}; |
147 |
[% END %] |
148 |
$("#basketgroups-table").kohaDataTable(options); |
149 |
|
150 |
$('#basketgroups-table').on('click', '.closeandprint', function(e) { |
151 |
e.preventDefault(); |
152 |
var w = window.open($(this).attr('href')); |
153 |
var timer = setInterval(function() { |
154 |
if (w.closed === true) { |
155 |
clearInterval(timer); |
156 |
window.location.reload(true); |
157 |
} |
158 |
}, 1000); |
159 |
}); |
160 |
$('#basketgroups-table').on('click', '.delete', function() { |
161 |
return confirm(_("Are you sure you want to delete this basketgroup ?")); |
162 |
}); |
163 |
}); |
164 |
</script> |
165 |
[% END %] |
166 |
|
163 |
[% INCLUDE 'intranet-bottom.inc' %] |
167 |
[% INCLUDE 'intranet-bottom.inc' %] |