1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Basket Grouping for [% booksellername |html %]</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 <script type="text/javascript" src="[% themelang %]/js/acq.js"></script>
6 <script type="text/javascript" src="[% yuipath %]/yahoo-dom-event/yahoo-dom-event.js"></script>
7 <script type="text/javascript" src="[% yuipath %]/animation/animation-min.js"></script>
8 <script type="text/javascript" src="[% yuipath %]/dragdrop/dragdrop-min.js"></script>
9 <script type="text/javascript" src="[% yuipath %]/element/element-min.js"></script>
10 <style type="text/css">
11 /*margin and padding on body element
12 can introduce errors in determining
13 element position and are not recommended;
14 we turn them off as a foundation for YUI
32 div.workarea_alt { padding: 5px; float:left; width: 95%;}
33 div.closed { background-color: pink; padding:10px; float:left; width: 45%;}
39 border: 1px inset gray;
53 border: 1px solid gray;
67 background-color: #D1E6EC;
68 border:1px solid #7EA6B2;
73 background-color: #D8D4E2;
74 border:1px solid #6B4C86;
84 <script type="text/javascript">
86 YAHOO.util.Event.onDOMReady(DDApp.init, DDApp, true);
88 function submitForm(form) {
89 if (form.close.checked == true) {
90 var input = document.createElement("input");
91 input.setAttribute("type", "hidden");
92 input.setAttribute("name", "closed");
93 input.setAttribute("value", "1");
94 form.appendChild(input);
97 // prepare DOM for YUI Toolbar
99 $(document).ready(function() {
100 // $("#toolbar").empty();
102 $("#basket_groups > ul").tabs();
105 // YUI Toolbar Functions
107 function yuiToolbar() {
108 var booksellermenu = [
109 { text: _("Vendor"), url: "/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]" },
110 { text: _("Edit vendor"), url: "/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]&op=enter"},
113 { text: _("Manage orders"), url: "/cgi-bin/koha/acqui/booksellers.pl?booksellerid=[% booksellerid %]" },
114 { text: _("Edit uncertain prices"), url: "/cgi-bin/koha/acqui/uncertainprice.pl?booksellerid=[% booksellerid %]&owner=1" },
116 new YAHOO.widget.Button("newbasketgroup");
117 new YAHOO.widget.Button({
120 name: "booksellerbutton",
121 menu: booksellermenu,
125 new YAHOO.widget.Button({
128 name: "ordersbutton",
137 [% INCLUDE 'header.inc' %]
138 [% INCLUDE 'acquisitions-search.inc' %]
140 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a> › Basket Grouping</div>
142 <div id="doc" class="yui-t7">
146 <a href="?op=add&booksellerid=[% booksellerid %]" name="newbasketgroup" id="newbasketgroup">New Basket Group</a>
148 <h1>Basket Grouping for <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% booksellerid %]">[% booksellername |html %]</a></h1>
150 [% IF ( grouping ) %]
155 <form action="[% scriptname %]" method="post" name="basketgroups" id="basketgroups">
157 <fieldset class="brief">
158 <div class="workarea_alt" >
159 <h3>Ungrouped Baskets</h3>
160 <ul id="ungrouped" class="draglist_alt">
162 [% FOREACH basket IN baskets %]
163 <li class="ungrouped" id="b-[% basket.basketno %]" >
164 <a href="basket.pl?basketno=[% basket.basketno %]">
165 [% IF ( basket.basketname ) %]
166 [% basket.basketname %]
168 No name, basketnumber: [% basket.basketno %]
171 Total: [% basket.total %]
172 <input type="hidden" class="basket" name="basket" value="[% basket.basketno %]" />
184 <div class="yui-u first">
185 <form action="" method="post" id="groupingform" onsubmit="return submitForm(this)">
186 <fieldset id="various" class="brief">
188 <li><label for="basketgroupname">Basket Group Name:</label>
189 <input type="text" name="basketgroupname" id="basketgroupname" value="[% name %]" /></li>
190 <li><label for="billingplace">Billing Place:</label>
191 <select name="billingplace" id="billingplace" style="width:13em;">
192 [% FOREACH billingplaceloo IN billingplaceloop %]
193 [% IF ( billingplaceloo.selected ) %]<option value="[% billingplaceloo.value %]" selected="selected">[% billingplaceloo.branchname %]</option>
194 [% ELSE %]<option value="[% billingplaceloo.value %]">[% billingplaceloo.branchname %]</option>[% END%]
197 <li><label for="deliveryplace">Delivery Place:</label>
198 <select name="deliveryplace" id="deliveryplace" style="width:13em;">
199 <option value="">--</option>
200 [% FOREACH deliveryplaceloo IN deliveryplaceloop %]
201 [% IF ( deliveryplaceloo.selected ) %]<option value="[% deliveryplaceloo.value %]" selected="selected">[% deliveryplaceloo.branchname %]</option>
202 [% ELSE %]<option value="[% deliveryplaceloo.value %]">[% deliveryplaceloo.branchname %]</option>[% END %]
206 <li><label for="freedeliveryplace">Delivery Place:</label>
207 <textarea cols="26" rows="3" name="freedeliveryplace" id="freedeliveryplace">[% freedeliveryplace %]</textarea></li>
208 <li><label for="deliverycomment">Delivery comment:</label>
209 <textarea cols="26" rows="3" name="deliverycomment" id="deliverycomment">[% deliverycomment %]</textarea>
211 <li><span class="label">Baskets in this group:</span>
212 <ul class="draglist" id="bg">
213 [% FOREACH selectedbasket IN selectedbaskets %]
214 <li class="grouped" id="b-[% selectedbasket.basketno %]" >
215 <a href="basket.pl?basketno=[% selectedbasket.basketno %]">
216 [% IF ( selectedbasket.basketname ) %]
217 [% selectedbasket.basketname %]
219 No name, basketnumber: [% selectedbasket.basketno %]
222 Total: [% selectedbasket.total %]
223 <input type="hidden" class="basket" name="basket" value="[% selectedbasket.basketno %]" />
228 <li><label><input type="checkbox" id="close" name="close" /> Close basket group</label></li>
232 <fieldset class="action"><input type="hidden" name="booksellerid" value="[% booksellerid %]" />
233 [% IF ( basketgroupid ) %]
234 <input type="hidden" name="basketgroupid" value="[% basketgroupid %]" />
236 <input type="hidden" name="op" value="attachbasket" />
237 <input type="submit" value="Save" />
245 <div id="basket_groups" class="toptabs">
246 <ul class="ui-tabs-nav">
247 [% UNLESS ( closed ) %]<li class="ui-tabs-selected"><a href="#opened">Open</a></li>
248 [% ELSE%]<li><a href="#opened">Open</a></li>[% END %]
249 [% IF ( closed ) %]<li class="ui-tabs-selected"><a href="#closed">Closed</a></li>
250 [% ELSE %]<li><a href="#closed">Closed</a></li>[% END %]
256 <th>Basket Group</th><th colspan="3">Action</th>
260 [% FOREACH basketgroup IN basketgroups %]
261 [% UNLESS ( basketgroup.closed ) %]
263 <td><a href="/cgi-bin/koha/acqui/basketgroup.pl?op=add&booksellerid=[% basketgroup.booksellerid %]&basketgroupid=[% basketgroup.id %]">[% IF ( basketgroup.name ) %]
264 [% basketgroup.name %]
266 Basket group no. [% basketgroup.id %]
270 <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>
276 <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>
288 <th>Basket Group</th><th colspan="3">Action</th>
292 [% FOREACH basketgroup IN basketgroups %]
293 [% IF ( basketgroup.closed ) %]
296 <a href="/cgi-bin/koha/acqui/basketgroup.pl?op=reopen&booksellerid=[% basketgroup.booksellerid %]&basketgroupid[% basketgroup.id %]">[% IF ( basketgroup.name ) %]
297 [% basketgroup.name %]
299 Basket group no. [% basketgroup.id %]
303 <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>
306 <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>
318 [% INCLUDE 'intranet-bottom.inc' %]