1 [% USE KohaBranchName %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha › Basket grouping for [% booksellername |html %]</title>
4 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
5 [% INCLUDE 'doc-head-close.inc' %]
6 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
7 <script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
8 <script type="text/javascript" src="[% yuipath %]/utilities/utilities.js"></script>
9 <script type="text/javascript" src="[% yuipath %]/button/button-min.js"></script>
10 <script type="text/javascript" src="[% yuipath %]/container/container_core-min.js"></script>
11 <script type="text/javascript" src="[% yuipath %]/menu/menu-min.js"></script>
12 <script type="text/javascript" src="[% themelang %]/js/acq.js"></script>
14 <script type="text/javascript" src="[% yuipath %]/yahoo-dom-event/yahoo-dom-event.js"></script>
15 <script type="text/javascript" src="[% yuipath %]/animation/animation-min.js"></script>
16 <script type="text/javascript" src="[% yuipath %]/dragdrop/dragdrop-min.js"></script>
17 <script type="text/javascript" src="[% yuipath %]/element/element-min.js"></script>
18 <style type="text/css">
19 /*margin and padding on body element
20 can introduce errors in determining
21 element position and are not recommended;
22 we turn them off as a foundation for YUI
42 div.workarea_alt { padding: 5px; float:left; width: 95%;}
43 div.closed { background-color: pink; padding:10px; float:left; width: 45%;}
49 border: 1px inset gray;
63 border: 1px solid gray;
77 background-color: #D1E6EC;
78 border:1px solid #7EA6B2;
83 background-color: #D8D4E2;
84 border:1px solid #6B4C86;
94 <script type="text/javascript">
96 YAHOO.util.Event.onDOMReady(DDApp.init, DDApp, true);
98 function submitForm(form) {
99 if (form.close.checked == true) {
100 var input = document.createElement("input");
101 input.setAttribute("type", "hidden");
102 input.setAttribute("name", "closed");
103 input.setAttribute("value", "1");
104 form.appendChild(input);
108 $(document).ready(function() {
109 $("#basket_groups").tabs();
111 $("table").dataTable($.extend(true, {}, dataTablesDefaults, {
113 { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
125 <body id="acq_basketgroup" class="acq">
126 [% INCLUDE 'header.inc' %]
127 [% INCLUDE 'acquisitions-search.inc' %]
129 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> ›
130 [% IF ( grouping ) %]
131 <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a> › <a href="/cgi-bin/koha/acqui/basketgroup.pl?booksellerid=[% booksellerid %]">Basket grouping</a> › Add basket group for [% booksellername |html %]</div>
133 <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a> › Basket grouping</div>
136 <div id="doc3" class="yui-t2">
141 [% IF ( grouping ) %]
142 <h1>Add basket group for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1>
143 <div id="basketgroupcolumns" class="yui-g">
146 <form action="[% scriptname %]" method="post" name="basketgroups" id="basketgroups">
148 <fieldset class="brief">
149 <div class="workarea_alt" >
150 <h3>Ungrouped baskets</h3>
151 <ul id="ungrouped" class="draglist_alt">
153 [% FOREACH basket IN baskets %]
154 <li class="ungrouped" id="b-[% basket.basketno %]" >
155 <a href="basket.pl?basketno=[% basket.basketno %]">
156 [% IF ( basket.basketname ) %]
157 [% basket.basketname %]
159 No name, basketnumber: [% basket.basketno %]
162 Total: [% basket.total %]
163 <input type="hidden" class="basket" name="basket" value="[% basket.basketno %]" />
175 <div class="yui-u first">
176 <form action="" method="post" id="groupingform" onsubmit="return submitForm(this)">
177 <fieldset id="various" class="brief">
179 <li><label for="basketgroupname">Basket group name:</label>
180 <input type="text" name="basketgroupname" id="basketgroupname" value="[% name %]" /></li>
181 <li><label for="billingplace">Billing place:</label>
182 <select name="billingplace" id="billingplace" style="width:13em;">
183 <option value="">--</option>
184 [% FOREACH billingplaceloo IN billingplaceloop %]
185 [% IF ( billingplaceloo.selected ) %]<option value="[% billingplaceloo.value %]" selected="selected">[% billingplaceloo.branchname %]</option>
186 [% ELSE %]<option value="[% billingplaceloo.value %]">[% billingplaceloo.branchname %]</option>[% END%]
189 <li><label for="deliveryplace">Delivery place:</label>
190 <select name="deliveryplace" id="deliveryplace" style="width:13em;">
191 <option value="">--</option>
192 [% FOREACH deliveryplaceloo IN deliveryplaceloop %]
193 [% IF ( deliveryplaceloo.selected ) %]<option value="[% deliveryplaceloo.value %]" selected="selected">[% deliveryplaceloo.branchname %]</option>
194 [% ELSE %]<option value="[% deliveryplaceloo.value %]">[% deliveryplaceloo.branchname %]</option>[% END %]
198 <li><label for="freedeliveryplace">Delivery place:</label>
199 <textarea cols="26" rows="3" name="freedeliveryplace" id="freedeliveryplace">[% freedeliveryplace %]</textarea></li>
200 <li><label for="deliverycomment">Delivery comment:</label>
201 <textarea cols="26" rows="3" name="deliverycomment" id="deliverycomment">[% deliverycomment %]</textarea>
203 <li><span class="label">Baskets in this group:</span>
204 <ul class="draglist" id="bg">
205 [% FOREACH selectedbasket IN selectedbaskets %]
206 <li class="grouped" id="b-[% selectedbasket.basketno %]" >
207 <a href="basket.pl?basketno=[% selectedbasket.basketno %]">
208 [% IF ( selectedbasket.basketname ) %]
209 [% selectedbasket.basketname %]
211 No name, basketnumber: [% selectedbasket.basketno %]
214 Total: [% selectedbasket.total %]
215 <input type="hidden" class="basket" name="basket" value="[% selectedbasket.basketno %]" />
220 <li><label><input type="checkbox" id="close" name="close" /> Close basket group</label></li>
224 <fieldset class="action"><input type="hidden" name="booksellerid" value="[% booksellerid %]" />
225 [% IF ( basketgroupid ) %]
226 <input type="hidden" name="basketgroupid" value="[% basketgroupid %]" />
228 <input type="hidden" name="op" value="attachbasket" />
229 <input type="submit" value="Save" /> <a href="/cgi-bin/koha/acqui/basketgroup.pl?booksellerid=[% booksellerid %]" class="cancel">Cancel</a>
236 <div id="toolbar" class="btn-toolbar">
237 <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>
239 <h1>Basket grouping for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1>
241 <div id="basket_groups" class="toptabs">
242 <ul class="ui-tabs-nav">
243 [% UNLESS ( closed ) %]<li class="ui-tabs-selected"><a href="#opened">Open</a></li>
244 [% ELSE%]<li><a href="#opened">Open</a></li>[% END %]
245 [% IF ( closed ) %]<li class="ui-tabs-selected"><a href="#closed">Closed</a></li>
246 [% ELSE %]<li><a href="#closed">Closed</a></li>[% END %]
249 <table id="basket_group_opened">
254 <th>Billing place</th>
255 <th>Delivery place</th>
256 <th>Number of baskets</th>
261 [% FOREACH basketgroup IN basketgroups %]
262 [% UNLESS ( basketgroup.closed ) %]
264 <td>[% IF ( basketgroup.name ) %]
265 [% basketgroup.name %]
267 Basket group no. [% basketgroup.id %]
270 <td>[% basketgroup.id %]</td>
271 <td>[% basketgroup.billingplace | $KohaBranchName %]</td>
272 <td>[% IF (basketgroup.freedeliveryplace) %]Free delivery place[% ELSE %][% basketgroup.deliveryplace | $KohaBranchName %][% END %]</td>
273 <td>[% basketgroup.basketsqty %]</td>
275 <input type="button" onclick="closeandprint([% basketgroup.id %])" value="Close and print" />
276 <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>
277 <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>
286 <table id="basket_group_closed">
291 <th>Billing place</th>
292 <th>Delivery place</th>
293 <th>Number of baskets</th>
298 [% FOREACH basketgroup IN basketgroups %]
299 [% IF ( basketgroup.closed ) %]
302 [% IF ( basketgroup.name ) %]
303 [% basketgroup.name %]
305 Basket group no. [% basketgroup.id %]
308 <td>[% basketgroup.id %]</td>
309 <td>[% basketgroup.billingplace | $KohaBranchName %]</td>
310 <td>[% IF (basketgroup.freedeliveryplace) %]Free delivery place[% ELSE %][% basketgroup.deliveryplace | $KohaBranchName %][% END %]</td>
311 <td>[% basketgroup.basketsqty %]</td>
313 <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>
314 <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>
315 <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>
328 [% IF ( booksellerid ) %]
329 [% INCLUDE 'vendor-menu.inc' %]
331 [% INCLUDE 'acquisitions-menu.inc' %]
334 [% INCLUDE 'intranet-bottom.inc' %]