Lines 106-113
fieldset.various li {
Link Here
|
106 |
} |
106 |
} |
107 |
|
107 |
|
108 |
$(document).ready(function() { |
108 |
$(document).ready(function() { |
109 |
$("#basket_groups").tabs(); |
109 |
[% IF ( listclosed) %] |
110 |
|
110 |
$("#basket_groups a[href='#closed']").tab("show"); |
|
|
111 |
[% ELSE %] |
112 |
$("#basket_groups a[href='#opened']").tab("show"); |
113 |
[% END %] |
111 |
$("table").dataTable($.extend(true, {}, dataTablesDefaults, { |
114 |
$("table").dataTable($.extend(true, {}, dataTablesDefaults, { |
112 |
"aoColumnDefs": [ |
115 |
"aoColumnDefs": [ |
113 |
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }, |
116 |
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }, |
Lines 325-418
fieldset.various li {
Link Here
|
325 |
<h1>Basket grouping for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% booksellername | html %]</a></h1> |
328 |
<h1>Basket grouping for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid | uri %]">[% booksellername | html %]</a></h1> |
326 |
[% IF (NoEDIMessage) %]<div><strong>No EDIFACT configuration for [% booksellername | html %]</strong></div>[% END %] |
329 |
[% IF (NoEDIMessage) %]<div><strong>No EDIFACT configuration for [% booksellername | html %]</strong></div>[% END %] |
327 |
<div id="basket_groups" class="toptabs"> |
330 |
<div id="basket_groups" class="toptabs"> |
328 |
<ul class="ui-tabs-nav"> |
331 |
<ul class="nav nav-tabs" role="tablist"> |
329 |
[% UNLESS ( listclosed) %]<li class="ui-tabs-active"><a href="#opened">Open</a></li> |
332 |
<li role="presentation"><a href="#opened" aria-controls="opened" role="tab" data-toggle="tab">Open</a></li> |
330 |
[% ELSE%]<li><a href="#opened">Open</a></li>[% END %] |
333 |
<li role="presentation"><a href="#closed" aria-controls="closed" role="tab" data-toggle="tab">Closed</a></li> |
331 |
[% IF ( listclosed) %]<li class="ui-tabs-active"><a href="#closed">Closed</a></li> |
|
|
332 |
[% ELSE %]<li><a href="#closed">Closed</a></li>[% END %] |
333 |
</ul> |
334 |
</ul> |
334 |
<div id="opened"> |
335 |
<div class="tab-content"> |
335 |
<table id="basket_group_opened"> |
336 |
<div role="tabpanel" class="tab-pane active" id="opened"> |
336 |
<thead> |
337 |
<table id="basket_group_opened"> |
337 |
<tr> |
338 |
<thead> |
338 |
<th>Name</th> |
339 |
<tr> |
339 |
<th>Number</th> |
340 |
<th>Name</th> |
340 |
<th>Billing place</th> |
341 |
<th>Number</th> |
341 |
<th>Delivery place</th> |
342 |
<th>Billing place</th> |
342 |
<th>Number of baskets</th> |
343 |
<th>Delivery place</th> |
343 |
<th>Action</th> |
344 |
<th>Number of baskets</th> |
344 |
</tr> |
345 |
<th>Action</th> |
345 |
</thead> |
346 |
</tr> |
346 |
<tbody> |
347 |
</thead> |
347 |
[% FOREACH basketgroup IN basketgroups %] |
348 |
<tbody> |
348 |
[% UNLESS ( basketgroup.closed ) %] |
349 |
[% FOREACH basketgroup IN basketgroups %] |
349 |
<tr> |
350 |
[% UNLESS ( basketgroup.closed ) %] |
350 |
<td>[% IF ( basketgroup.name ) %] |
351 |
<tr> |
351 |
[% basketgroup.name | html %] |
352 |
<td>[% IF ( basketgroup.name ) %] |
352 |
[% ELSE %] |
|
|
353 |
Basket group no. [% basketgroup.id | html %] |
354 |
[% END %] |
355 |
</td> |
356 |
<td>[% basketgroup.id | html %]</td> |
357 |
<td>[% Branches.GetName( basketgroup.billingplace ) | html %]</td> |
358 |
<td>[% IF (basketgroup.freedeliveryplace) %]Free delivery place[% ELSE %][% Branches.GetName( basketgroup.deliveryplace ) | html %][% END %]</td> |
359 |
<td>[% basketgroup.basketsqty | html %]</td> |
360 |
<td> |
361 |
<input type="button" onclick="closeandprint('[% basketgroup.id | html %]');" value="Close and export as PDF" /> |
362 |
<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 | html %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id | html %]" /><input type="submit" value="Edit" /></form> |
363 |
[% UNLESS basketgroup.basketsqty %] |
364 |
<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 | html %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id | html %]" /><input type="submit" value="Delete" /></form> |
365 |
[% END %] |
366 |
</td> |
367 |
</tr> |
368 |
[% END %] |
369 |
[% END %] |
370 |
</tbody> |
371 |
</table> |
372 |
</div> |
373 |
<div id="closed"> |
374 |
<table id="basket_group_closed"> |
375 |
<thead> |
376 |
<tr> |
377 |
<th>Name</th> |
378 |
<th>Number</th> |
379 |
<th>Billing place</th> |
380 |
<th>Delivery place</th> |
381 |
<th>Number of baskets</th> |
382 |
<th>Action</th> |
383 |
</tr> |
384 |
</thead> |
385 |
<tbody> |
386 |
[% FOREACH basketgroup IN basketgroups %] |
387 |
[% IF ( basketgroup.closed ) %] |
388 |
<tr> |
389 |
<td> |
390 |
[% IF ( basketgroup.name ) %] |
391 |
[% basketgroup.name | html %] |
353 |
[% basketgroup.name | html %] |
392 |
[% ELSE %] |
354 |
[% ELSE %] |
393 |
Basket group no. [% basketgroup.id | html %] |
355 |
Basket group no. [% basketgroup.id | html %] |
394 |
[% END %] |
356 |
[% END %] |
395 |
</td> |
357 |
</td> |
396 |
<td>[% basketgroup.id | html %]</td> |
358 |
<td>[% basketgroup.id | html %]</td> |
397 |
<td>[% Branches.GetName( basketgroup.billingplace ) | html %]</td> |
359 |
<td>[% Branches.GetName( basketgroup.billingplace ) | html %]</td> |
398 |
<td>[% IF (basketgroup.freedeliveryplace) %]Free delivery place[% ELSE %][% Branches.GetName( basketgroup.deliveryplace ) | html %][% END %]</td> |
360 |
<td>[% IF (basketgroup.freedeliveryplace) %]Free delivery place[% ELSE %][% Branches.GetName( basketgroup.deliveryplace ) | html %][% END %]</td> |
399 |
<td>[% basketgroup.basketsqty | html %]</td> |
361 |
<td>[% basketgroup.basketsqty | html %]</td> |
400 |
<td> |
362 |
<td> |
401 |
<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 | html %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id | html %]" /><input type="submit" value="View" /></form> |
363 |
<input type="button" onclick="closeandprint('[% basketgroup.id | html %]');" value="Close and export as PDF" /> |
402 |
<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 | html %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id | html %]" /><input type="submit" value="Reopen" /></form> |
364 |
<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 | html %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id | html %]" /><input type="submit" value="Edit" /></form> |
403 |
<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 | html %]" /><input type="submit" value="Export as PDF" /></form> |
365 |
[% UNLESS basketgroup.basketsqty %] |
404 |
<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 | html %]" /><input type="submit" value="Export as CSV" /></form> |
366 |
<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 | html %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id | html %]" /><input type="submit" value="Delete" /></form> |
405 |
[% IF (ediaccount) %] |
367 |
[% END %] |
406 |
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="ediprint" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id | html %]" /><input type="submit" value="Generate EDIFACT order" /></form> |
368 |
</td> |
407 |
[% ELSE %] |
369 |
</tr> |
408 |
<div>No EDIFACT configuration for [% booksellername | html %]</div> |
|
|
409 |
[% END %] |
370 |
[% END %] |
410 |
</td> |
|
|
411 |
</tr> |
412 |
[% END %] |
371 |
[% END %] |
413 |
[% END %] |
372 |
</tbody> |
414 |
</tbody> |
373 |
</table> |
415 |
</table> |
374 |
</div> |
|
|
375 |
<div role="tabpanel" class="tab-pane" id="closed"> |
376 |
<table id="basket_group_closed"> |
377 |
<thead> |
378 |
<tr> |
379 |
<th>Name</th> |
380 |
<th>Number</th> |
381 |
<th>Billing place</th> |
382 |
<th>Delivery place</th> |
383 |
<th>Number of baskets</th> |
384 |
<th>Action</th> |
385 |
</tr> |
386 |
</thead> |
387 |
<tbody> |
388 |
[% FOREACH basketgroup IN basketgroups %] |
389 |
[% IF ( basketgroup.closed ) %] |
390 |
<tr> |
391 |
<td> |
392 |
[% IF ( basketgroup.name ) %] |
393 |
[% basketgroup.name | html %] |
394 |
[% ELSE %] |
395 |
Basket group no. [% basketgroup.id | html %] |
396 |
[% END %] |
397 |
</td> |
398 |
<td>[% basketgroup.id | html %]</td> |
399 |
<td>[% Branches.GetName( basketgroup.billingplace ) | html %]</td> |
400 |
<td>[% IF (basketgroup.freedeliveryplace) %]Free delivery place[% ELSE %][% Branches.GetName( basketgroup.deliveryplace ) | html %][% END %]</td> |
401 |
<td>[% basketgroup.basketsqty | html %]</td> |
402 |
<td> |
403 |
<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 | html %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id | html %]" /><input type="submit" value="View" /></form> |
404 |
<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 | html %]" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id | html %]" /><input type="submit" value="Reopen" /></form> |
405 |
<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 | html %]" /><input type="submit" value="Export as PDF" /></form> |
406 |
<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 | html %]" /><input type="submit" value="Export as CSV" /></form> |
407 |
[% IF (ediaccount) %] |
408 |
<form action="/cgi-bin/koha/acqui/basketgroup.pl" method="get"><input type="hidden" name="op" value="ediprint" /><input type="hidden" name="basketgroupid" value="[% basketgroup.id | html %]" /><input type="submit" value="Generate EDIFACT order" /></form> |
409 |
[% ELSE %] |
410 |
<div>No EDIFACT configuration for [% booksellername | html %]</div> |
411 |
[% END %] |
412 |
</td> |
413 |
</tr> |
414 |
[% END %] |
415 |
[% END %] |
416 |
</tbody> |
417 |
</table> |
418 |
</div> |
416 |
</div> |
419 |
</div> |
417 |
</div> |
420 |
</div> |
418 |
[% END %] |
421 |
[% END %] |
419 |
- |
|
|