1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Basket grouping for [% booksellername |html %]</title>
3 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
4 [% INCLUDE 'doc-head-close.inc' %]
5 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
6 <script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
7 <script type="text/javascript" src="[% themelang %]/js/acq.js"></script>
9 <script type="text/javascript" src="[% yuipath %]/yahoo-dom-event/yahoo-dom-event.js"></script>
10 <script type="text/javascript" src="[% yuipath %]/animation/animation-min.js"></script>
11 <script type="text/javascript" src="[% yuipath %]/dragdrop/dragdrop-min.js"></script>
12 <script type="text/javascript" src="[% yuipath %]/element/element-min.js"></script>
13 <style type="text/css">
14 /*margin and padding on body element
15 can introduce errors in determining
16 element position and are not recommended;
17 we turn them off as a foundation for YUI
37 div.workarea_alt { padding: 5px; float:left; width: 95%;}
38 div.closed { background-color: pink; padding:10px; float:left; width: 45%;}
44 border: 1px inset gray;
58 border: 1px solid gray;
72 background-color: #D1E6EC;
73 border:1px solid #7EA6B2;
78 background-color: #D8D4E2;
79 border:1px solid #6B4C86;
89 <script type="text/javascript">
91 YAHOO.util.Event.onDOMReady(DDApp.init, DDApp, true);
93 function submitForm(form) {
94 if (form.close.checked == true) {
95 var input = document.createElement("input");
96 input.setAttribute("type", "hidden");
97 input.setAttribute("name", "closed");
98 input.setAttribute("value", "1");
99 form.appendChild(input);
103 $(document).ready(function() {
104 $("#basket_groups").tabs();
106 $("table").dataTable($.extend(true, {}, dataTablesDefaults, {
108 { "aTargets": [ -1 ], "bSortable": false, "bSearchable": false },
122 <body id="acq_basketgroup" class="acq">
123 [% INCLUDE 'header.inc' %]
124 [% INCLUDE 'acquisitions-search.inc' %]
126 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> ›
127 [% IF ( grouping ) %]
128 <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>
130 <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a> › Basket grouping</div>
133 <div id="doc3" class="yui-t2">
138 [% IF ( grouping ) %]
139 <h1>Add basket group for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1>
140 <div id="basketgroupcolumns" class="yui-g">
143 <form action="[% scriptname %]" method="post" name="basketgroups" id="basketgroups">
145 <fieldset class="brief">
146 <div class="workarea_alt" >
147 <h3>Ungrouped baskets</h3>
148 <ul id="ungrouped" class="draglist_alt">
150 [% FOREACH basket IN baskets %]
151 <li class="ungrouped" id="b-[% basket.basketno %]" >
152 <a href="basket.pl?basketno=[% basket.basketno %]">
153 [% IF ( basket.basketname ) %]
154 [% basket.basketname %]
156 No name, basketnumber: [% basket.basketno %]
159 Total: [% basket.total %]
160 <input type="hidden" class="basket" name="basket" value="[% basket.basketno %]" />
172 <div class="yui-u first">
173 <form action="" method="post" id="groupingform" onsubmit="return submitForm(this)">
174 <fieldset id="various" class="brief">
176 <li><label for="basketgroupname">Basket group name:</label>
177 <input type="text" name="basketgroupname" id="basketgroupname" value="[% name %]" /></li>
178 <li><label for="billingplace">Billing place:</label>
179 <select name="billingplace" id="billingplace" style="width:13em;">
180 <option value="">--</option>
181 [% FOREACH billingplaceloo IN billingplaceloop %]
182 [% IF ( billingplaceloo.selected ) %]<option value="[% billingplaceloo.value %]" selected="selected">[% billingplaceloo.branchname %]</option>
183 [% ELSE %]<option value="[% billingplaceloo.value %]">[% billingplaceloo.branchname %]</option>[% END%]
186 <li><label for="deliveryplace">Delivery place:</label>
187 <select name="deliveryplace" id="deliveryplace" style="width:13em;">
188 <option value="">--</option>
189 [% FOREACH deliveryplaceloo IN deliveryplaceloop %]
190 [% IF ( deliveryplaceloo.selected ) %]<option value="[% deliveryplaceloo.value %]" selected="selected">[% deliveryplaceloo.branchname %]</option>
191 [% ELSE %]<option value="[% deliveryplaceloo.value %]">[% deliveryplaceloo.branchname %]</option>[% END %]
195 <li><label for="freedeliveryplace">Delivery place:</label>
196 <textarea cols="26" rows="3" name="freedeliveryplace" id="freedeliveryplace">[% freedeliveryplace %]</textarea></li>
197 <li><label for="deliverycomment">Delivery comment:</label>
198 <textarea cols="26" rows="3" name="deliverycomment" id="deliverycomment">[% deliverycomment %]</textarea>
200 <li><span class="label">Baskets in this group:</span>
201 <ul class="draglist" id="bg">
202 [% FOREACH selectedbasket IN selectedbaskets %]
203 <li class="grouped" id="b-[% selectedbasket.basketno %]" >
204 <a href="basket.pl?basketno=[% selectedbasket.basketno %]">
205 [% IF ( selectedbasket.basketname ) %]
206 [% selectedbasket.basketname %]
208 No name, basketnumber: [% selectedbasket.basketno %]
211 Total: [% selectedbasket.total %]
212 <input type="hidden" class="basket" name="basket" value="[% selectedbasket.basketno %]" />
217 <li><label><input type="checkbox" id="close" name="close" /> Close basket group</label></li>
221 <fieldset class="action"><input type="hidden" name="booksellerid" value="[% booksellerid %]" />
222 [% IF ( basketgroupid ) %]
223 <input type="hidden" name="basketgroupid" value="[% basketgroupid %]" />
225 <input type="hidden" name="op" value="attachbasket" />
226 <input type="submit" value="Save" /> <a href="/cgi-bin/koha/acqui/basketgroup.pl?booksellerid=[% booksellerid %]" class="cancel">Cancel</a>
233 <div id="toolbar" class="btn-toolbar">
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>
236 <h1>Basket grouping for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1>
238 <div id="basket_groups" class="toptabs">
239 <ul class="ui-tabs-nav">
240 [% UNLESS ( closed ) %]<li class="ui-tabs-selected"><a href="#opened">Open</a></li>
241 [% ELSE%]<li><a href="#opened">Open</a></li>[% END %]
242 [% IF ( closed ) %]<li class="ui-tabs-selected"><a href="#closed">Closed</a></li>
243 [% ELSE %]<li><a href="#closed">Closed</a></li>[% END %]
246 <table id="basket_group_opened">
249 <th>Basket group</th><th>Action</th>
253 [% FOREACH basketgroup IN basketgroups %]
254 [% UNLESS ( basketgroup.closed ) %]
256 <td>[% IF ( basketgroup.name ) %]
257 [% basketgroup.name %]
259 Basket group no. [% basketgroup.id %]
263 <input type="button" onclick="closeandprint([% basketgroup.id %])" value="Close and print" />
264 <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>
265 <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>
274 <table id="basket_group_closed">
277 <th>Basket group</th><th>Action</th>
281 [% FOREACH basketgroup IN basketgroups %]
282 [% IF ( basketgroup.closed ) %]
285 [% IF ( basketgroup.name ) %]
286 [% basketgroup.name %]
288 Basket group no. [% basketgroup.id %]
292 <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>
293 <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>
294 <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>
307 [% IF ( booksellerid ) %]
308 [% INCLUDE 'vendor-menu.inc' %]
310 [% INCLUDE 'acquisitions-menu.inc' %]
313 [% INCLUDE 'intranet-bottom.inc' %]