Lines 234-322
function submitForm(form) {
Link Here
|
234 |
<div class="btn-group"><a href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&booksellerid=[% booksellerid %]" class="btn btn-small" id="newbasketgroup"><i class="icon-plus"></i> New basket group</a></div> |
234 |
<div class="btn-group"><a href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&booksellerid=[% booksellerid %]" class="btn btn-small" id="newbasketgroup"><i class="icon-plus"></i> New basket group</a></div> |
235 |
</div> |
235 |
</div> |
236 |
<h1>Basket grouping for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1> |
236 |
<h1>Basket grouping for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1> |
237 |
|
237 |
<div id="basket_groups" class="toptabs"> |
238 |
<div id="basket_groups" class="toptabs"> |
238 |
<ul class="ui-tabs-nav"> |
239 |
<ul class="ui-tabs-nav"> |
239 |
[% UNLESS ( closed ) %]<li class="ui-tabs-selected"><a href="#opened">Open</a></li> |
240 |
[% UNLESS ( closed ) %]<li class="ui-tabs-selected"><a href="#opened">Open</a></li> |
240 |
[% ELSE%]<li><a href="#opened">Open</a></li>[% END %] |
241 |
[% ELSE%]<li><a href="#opened">Open</a></li>[% END %] |
241 |
[% IF ( closed ) %]<li class="ui-tabs-selected"><a href="#closed">Closed</a></li> |
242 |
[% IF ( closed ) %]<li class="ui-tabs-selected"><a href="#closed">Closed</a></li> |
242 |
[% ELSE %]<li><a href="#closed">Closed</a></li>[% END %] |
243 |
[% ELSE %]<li><a href="#closed">Closed</a></li>[% END %] |
243 |
</ul> |
244 |
</ul> |
244 |
<div id="opened"> |
245 |
<div id="opened"> |
245 |
<table id="basket_group_opened"> |
246 |
<table id="basket_group_opened"> |
246 |
<thead> |
247 |
<thead> |
247 |
<tr> |
248 |
<tr> |
248 |
<th>Name</th> |
249 |
<th>Name</th> |
249 |
<th>Number</th> |
250 |
<th>Number</th> |
250 |
<th>Billing place</th> |
251 |
<th>Billing place</th> |
251 |
<th>Delivery place</th> |
252 |
<th>Delivery place</th> |
252 |
<th>Number of baskets</th> |
253 |
<th>Number of baskets</th> |
253 |
<th>Action</th> |
254 |
<th>Action</th> |
254 |
</tr> |
255 |
</tr> |
255 |
</thead> |
256 |
</thead> |
256 |
<tbody> |
257 |
<tbody> |
257 |
[% FOREACH basketgroup IN basketgroups %] |
258 |
[% FOREACH basketgroup IN basketgroups %] |
258 |
[% UNLESS ( basketgroup.closed ) %] |
259 |
[% UNLESS ( basketgroup.closed ) %] |
259 |
<tr> |
260 |
<tr> |
260 |
<td>[% IF ( basketgroup.name ) %] |
261 |
<td>[% IF ( basketgroup.name ) %] |
261 |
[% basketgroup.name %] |
262 |
[% basketgroup.name %] |
262 |
[% ELSE %] |
263 |
[% ELSE %] |
263 |
Basket group no. [% basketgroup.id %] |
264 |
Basket group no. [% basketgroup.id %] |
264 |
[% END %] |
265 |
[% END %] |
265 |
</td> |
266 |
</td> |
|
|
267 |
<td>[% basketgroup.id %]</td> |
266 |
<td>[% basketgroup.id %]</td> |
268 |
<td>[% basketgroup.billingplacename %]</td> |
267 |
<td>[% basketgroup.billingplacename %]</td> |
269 |
<td>[% IF (basketgroup.freedeliveryplace) %]Free delivery place[% ELSE %][% basketgroup.deliveryplacename %][% END %]</td> |
268 |
<td>[% IF (basketgroup.freedeliveryplace) %]Free delivery place[% ELSE %][% basketgroup.deliveryplacename %][% END %]</td> |
270 |
<td>[% basketgroup.basketsqty %]</td> |
269 |
<td>[% basketgroup.basketsqty %]</td> |
271 |
<td> |
270 |
<td> |
272 |
<input type="button" onclick="closeandprint([% basketgroup.id %])" value="Close and print" /> |
271 |
<input type="button" onclick="closeandprint([% basketgroup.id %])" value="Close and print" /> |
273 |
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="add" /><input type="hidden" name="booksellerid" value="[% basketgroup.booksellerid %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Edit" /></form> |
272 |
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="add" /><input type="hidden" name="booksellerid" value="[% basketgroup.booksellerid %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Edit" /></form> |
274 |
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="delete" /><input type="hidden" name="booksellerid" value="[% basketgroup.booksellerid %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Delete" /></form> |
273 |
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="delete" /><input type="hidden" name="booksellerid" value="[% basketgroup.booksellerid %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Delete" /></form> |
275 |
</td> |
274 |
</td> |
276 |
</tr> |
275 |
</tr> |
277 |
[% END %] |
276 |
[% END %] |
278 |
[% END %] |
277 |
[% END %] |
279 |
</tbody> |
278 |
</tbody> |
280 |
</table> |
279 |
</table> |
281 |
</div> |
280 |
</div> |
282 |
<div id="closed"> |
281 |
<div id="closed"> |
283 |
<table id="basket_group_closed"> |
282 |
<table id="basket_group_closed"> |
284 |
<thead> |
283 |
<thead> |
285 |
<tr> |
284 |
<tr> |
286 |
<th>Name</th> |
285 |
<th>Name</th> |
287 |
<th>Number</th> |
286 |
<th>Number</th> |
288 |
<th>Billing place</th> |
287 |
<th>Billing place</th> |
289 |
<th>Delivery place</th> |
288 |
<th>Delivery place</th> |
290 |
<th>Number of baskets</th> |
289 |
<th>Number of baskets</th> |
291 |
<th>Action</th> |
290 |
<th>Action</th> |
292 |
</tr> |
291 |
</tr> |
293 |
</thead> |
292 |
</thead> |
294 |
<tbody> |
293 |
<tbody> |
295 |
[% FOREACH basketgroup IN basketgroups %] |
294 |
[% FOREACH basketgroup IN basketgroups %] |
296 |
[% IF ( basketgroup.closed ) %] |
295 |
[% IF ( basketgroup.closed ) %] |
297 |
<tr> |
296 |
<tr> |
298 |
<td> |
297 |
<td> |
299 |
[% IF ( basketgroup.name ) %] |
298 |
[% IF ( basketgroup.name ) %] |
300 |
[% basketgroup.name %] |
299 |
[% basketgroup.name %] |
301 |
[% ELSE %] |
300 |
[% ELSE %] |
302 |
Basket group no. [% basketgroup.id %] |
301 |
Basket group no. [% basketgroup.id %] |
303 |
[% END %] |
302 |
[% END %] |
304 |
</td> |
303 |
</td> |
305 |
<td>[% basketgroup.id %]</td> |
304 |
<td>[% basketgroup.id %]</td> |
306 |
<td>[% basketgroup.billingplacename %]</td> |
305 |
<td>[% basketgroup.billingplacename %]</td> |
307 |
<td>[% IF (basketgroup.freedeliveryplace) %]Free delivery place[% ELSE %][% basketgroup.deliveryplacename %][% END %]</td> |
306 |
<td>[% IF (basketgroup.freedeliveryplace) %]Free delivery place[% ELSE %][% basketgroup.deliveryplacename %][% END %]</td> |
308 |
<td>[% basketgroup.basketsqty %]</td> |
307 |
<td>[% basketgroup.basketsqty %]</td> |
309 |
<td> |
308 |
<td> |
310 |
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="reopen" /><input type="hidden" name="booksellerid" value="[% basketgroup.booksellerid %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Reopen" /></form> |
309 |
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="reopen" /><input type="hidden" name="booksellerid" value="[% basketgroup.booksellerid %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Reopen" /></form> |
311 |
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="print" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Print" /></form> |
310 |
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="print" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Print" /></form> |
312 |
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="export" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Export as CSV" /></form> |
311 |
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="export" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id %]" /><input type="submit" value="Export as CSV" /></form> |
313 |
</td> |
312 |
</td> |
314 |
</tr> |
313 |
</tr> |
315 |
[% END %] |
314 |
[% END %] |
316 |
[% END %] |
315 |
[% END %] |
317 |
</tbody> |
316 |
</tbody> |
318 |
</table> |
317 |
</table> |
319 |
</div> |
318 |
</div> |
320 |
</div> |
319 |
</div> |
321 |
[% END %] |
320 |
[% END %] |
322 |
</div> |
321 |
</div> |
323 |
- |
|
|